Returns the floating-point remainder of two BigFloat values.
The quotient is truncated to zero.
You can also use the % operator on BigFloat values.
BigFloat.fmod(a, b, env?)
a
The dividend BigFloat.
b
The divisor BigFloat.
env optional
The floating point environment. If not specified, the current global environment is used. See BigFloatEnv.
A new BigFloat.
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