Math module

reduc

procedure · 1 overloadSource

Rounds x down to a multiple of 1/16: floor(16 * x) / 16. Only float64.

ExampleOpen in playground ↗
assert(reduc(cast(float64) 1.99) == 1.9375 && reduc(cast(float64) -0.01) == -0.0625);
reduc :: (x: float64) -> float64

Rounds x down to a multiple of 1/16.

Parameters

x: float64
the value.

Returns

float64

See also