BigFloat.remainder

Returns the floating-point remainder of two BigFloat values. The quotient is truncated to the nearest integer with ties to even.

Syntax

BigFloat.remainder(a, b, env?)

Parameters

Return value

A new BigFloat.

Examples

BigFloat.remainder(10.5l, 3l)
-1.5
BigFloat.remainder(1.245l, 3l)
1.245
BigFloat.remainder(1.245l, 3l, new BigFloatEnv(16))
1.2449951171875

See also