type Float = Float
Module Float
Floating-point operations and constants.
Returns the absolute value.
Float.Atan2(y, x) is the two-argument arctangent of (y, x).
Rounds up toward positive infinity.
Float.Clamp(value)(lo, hi) computes Float.Max(Float.Min(value, hi), lo).
Cosine.
Euler's number.
Float.Equals(left, right, tolerance) tests whether left and right
differ by at most tolerance.
Returns .false! if any argument is NaN.
Exponential function.
Rounds down toward negative infinity.
Converts an integer to a float.
dec Float.FromString : [String] either { .err !, .ok Float, }
Parses a float literal or one of NaN, Inf, -Inf, Infinity, -Infinity.
Positive infinity.
Tests whether a float is finite.
dec Float.IsInfinite : [Float] Bool
Tests whether a float is positive or negative infinity.
Tests whether a float is NaN.
Natural logarithm.
Returns the larger input, or NaN if either input is NaN.
Returns the smaller input, or NaN if either input is NaN.
The IEEE-754 "not a number" value.
Negates a float.
Negative infinity.
Archimedes' constant.
Float.Pow(base, exponent) returns base raised to the power exponent.
Rounds to the nearest integer, ties away from zero.
Sine.
Square root.
Tangent.
Truncates a float toward zero.
Returns 0 for NaN, Inf, and NegInf.