REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |

TOC < Back Next > | Updated: 3-Aug-2010 Edit History |

remainder
value1
value2

**Returns the remainder of first value divided by second.**

Arguments:

value1 [scalar!]

value2 [scalar!]

See also:

If the second number is zero, an error will occur.

```
print remainder 123 10
3
```

```
print remainder 10 10
0
```

```
print remainder 10.2 10
0.1999999999999993
```

If the first value is positive, then the returned remainder is nonnegative.

If the first value is negative, then the returned remainder is nonpositive.

TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |