Import std.math.scalar
Rem
function
@PanicsAtCaller Public Function Rem<T>(a: T, b: T): T
The remainder of a divided by b with the sign of a, as % gives it: Rem(-1, 3) is -1. A b
of 0 panics.
function
Public Function Rem<T: FloatingPoint>(a: T, b: T): T
The remainder of a divided by b with the sign of a, exactly, as C's fmod gives it:
Rem(-1.5, 4.0) is -1.5. A b of 0 gives NaN.
Report an issue with this page or with FutureBlitz on GitHub.