Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

fmodulo returns the remainder on divison of x/y. In contrast to modulo this one allows floating point numbers to be used.

Parameter Description
x Dividend value
y Divisor value

Example

Example 1: Comparison of modulo and fmodulo

> (modulo 33 2)
1
> (fmodulo 33 2.5)
.4999999999999982
Clone this wiki locally