Float32

GitHub   Edit on GitHub

Operations on the Float32 type.

1
import Float32 from "float32"

Values

Float32.fromNumber

1
fromNumber : Number -> Float32

Coverts the argument from a Number to a Float32.

Float32.toNumber

1
toNumber : Float32 -> Number

Converts the argument from a Float32 to a Number.

Float32.add

1
add : (Float32, Float32) -> Float32

Floating-point addition.

Float32.sub

1
sub : (Float32, Float32) -> Float32

Floating-point subtraction.

Float32.mul

1
mul : (Float32, Float32) -> Float32

Floating-point multiplication.

Float32.div

1
div : (Float32, Float32) -> Float32

Floating-point division.

Float32.gt

1
gt : (Float32, Float32) -> Bool

Checks if the first argument is strictly greater than the second argument.

Float32.gte

1
gte : (Float32, Float32) -> Bool

Checks if the first argument is greater than or equal to the second argument.

Float32.lt

1
lt : (Float32, Float32) -> Bool

Checks if the first argument is strictly less than the second argument.

Float32.lte

1
lte : (Float32, Float32) -> Bool

Checks if the first argument is less than or equal to the second argument.

This is a notification!