Skip to content
FutureBlitz

    Install

    Import std.math.bits

    UInt32

    std.math.bits

    extend

    Extend UInt32

    Saturating arithmetic on UInt32s, which stops at the lowest and highest in place of overflowing.

    std/math/bits.fb, line 261

    • Public Method SaturatingAdd(other: UInt32): UInt32 method #

      The sum, or the lowest or highest UInt32 in place of an overflow.

    • Public Method SaturatingSubtract(other: UInt32): UInt32 method #

      The difference, or the lowest or highest UInt32 in place of an overflow.

    • Public Method SaturatingMultiply(other: UInt32): UInt32 method #

      The product, or the lowest or highest UInt32 in place of an overflow.

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