Documentation

HexRealRoots.Sign

Integer sign using comparisons with zero. Compiled comparisons inspect the integer's sign and size without copying its multiprecision magnitude.

Equations
Instances For

    The comparison implementation preserves the integer sign at every input.

    @[csimp]

    Compile integer sign through zero comparisons. In the current toolchain, the constructor-based implementation copies positive multiprecision integers when it converts their magnitude to a natural number.