Skip to content
FutureBlitz

    Install

    Import std.math.scalar

    Rem

    std.math.scalar

    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.

    std/math/scalar.fb, line 107

    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.

    std/math/scalar.fb, line 115

    Report an issue with this page or with FutureBlitz on GitHub.