# Futurebasic/Language/Reference/mod

< Futurebasic | Language | Reference

## MODEdit

### SyntaxEdit

*remainder* = *expr* **MOD** *modulus*

### DescriptionEdit

The

operator subtracts from **MOD**`ABS(`

the largest multiple of *expr*)`ABS(`

) which is less than or equal to *modulus*`ABS(`

, and returns the result as remainder. If *expr*)

is negative, then a negative result is returned in remainder.
*expr*

Note that if

and modulus are both integers, the result of *expr*

is just the remainder of the integer division operation **MOD**

.
*expr* / *modulus*

### See AlsoEdit

Appendix D: Numeric Expressions