BigFloat.mod

Returns the floating-point remainder of two BigFloat values. The quotient is truncated to zero.

You can also use the % operator on BigFloat values.

Syntax

BigFloat.fmod(a, b, env?)

Parameters

Return value

A new BigFloat.

Examples

10.5l % 3l
1.5
BigFloat.fmod(10.5l, 3l)
1.5
BigFloat.fmod(1.245l, 3l)
1.245
BigFloat.fmod(1.245l, 3l, new BigFloatEnv(16))
1.2449951171875

See also