Skip to content
FutureBlitz

    Install

    Import std.math.bits

    Int8

    std.math.bits

    extend

    Extend Int8

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

    std/math/bits.fb, line 158

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

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

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

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

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

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

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