Skip to content
FutureBlitz

    Install

    Import std.math.numbers

    FloatingPoint

    std.math.numbers

    interface

    Public Interface FloatingPoint Extends Bounded

    Float32 and Float64, with what C's libm works out for each. Rounding is half away from 0, and Rem is C's fmod, which is exact.

    std/math/numbers.fb, line 115

    • Static Method Epsilon(): Self static method #

      The gap between 1 and the next value above it.

    • Static Method FromDouble(value: Float64): Self static method #

      The Double as this type, rounded to the nearest value it holds.

    • Static Method Floor(value: Self): Self static method #

      The largest whole number no larger than value.

    • Static Method Ceil(value: Self): Self static method #

      The smallest whole number no smaller than value.

    • Static Method Round(value: Self): Self static method #

      The whole number nearest value, a half away from 0.

    • Static Method Trunc(value: Self): Self static method #

      value without what's after its point: the whole number toward 0.

    • Static Method Sqrt(value: Self): Self static method #

      The square root of value, or NaN for a negative one.

    • Static Method Cbrt(value: Self): Self static method #

      The cube root of value.

    • Static Method Exp(value: Self): Self static method #

      e to the power of value.

    • Static Method Exp2(value: Self): Self static method #

      2 to the power of value.

    • Static Method Log(value: Self): Self static method #

      The natural logarithm of value.

    • Static Method Log2(value: Self): Self static method #

      The base 2 logarithm of value.

    • Static Method Log10(value: Self): Self static method #

      The base 10 logarithm of value.

    • Static Method Sin(value: Self): Self static method #

      The sine of value, in radians.

    • Static Method Cos(value: Self): Self static method #

      The cosine of value, in radians.

    • Static Method Tan(value: Self): Self static method #

      The tangent of value, in radians.

    • Static Method Asin(value: Self): Self static method #

      The angle, in radians, whose sine is value.

    • Static Method Acos(value: Self): Self static method #

      The angle, in radians, whose cosine is value.

    • Static Method Atan(value: Self): Self static method #

      The angle, in radians, whose tangent is value.

    • Static Method Atan2(y: Self, x: Self): Self static method #

      The angle, in radians, of the point (x, y) from the positive x axis, from -pi to pi.

    • Static Method Sinh(value: Self): Self static method #

      The hyperbolic sine of value.

    • Static Method Cosh(value: Self): Self static method #

      The hyperbolic cosine of value.

    • Static Method Tanh(value: Self): Self static method #

      The hyperbolic tangent of value.

    • Static Method Asinh(value: Self): Self static method #

      The inverse hyperbolic sine of value.

    • Static Method Acosh(value: Self): Self static method #

      The inverse hyperbolic cosine of value.

    • Static Method Atanh(value: Self): Self static method #

      The inverse hyperbolic tangent of value.

    • Static Method Rem(a: Self, b: Self): Self static method #

      What's left of a divided by b, with a's sign, as C's fmod gives it.

    • Static Method CopySign(magnitude: Self, sign: Self): Self static method #

      magnitude's size with sign's sign.

    • Static Method Fma(a: Self, b: Self, c: Self): Self static method #

      a times b, plus c, rounded once.

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