fmodulo - part-cw/lambdanative GitHub Wiki

(fmodulo x y)

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