Int32

GitHub   Edit on GitHub

Operations on the Int32 type.

1
import Int32 from "int32"

Values

Int32.fromNumber

1
fromNumber : Number -> Int32

Coverts the argument from a Number to an Int32.

Int32.toNumber

1
toNumber : Int32 -> Number

Converts the argument from an Int32 to a Number.

Int32.incr

1
incr : Int32 -> Int32

Increments the number by 1.

Int32.decr

1
decr : Int32 -> Int32

Decrements the number by 1.

Int32.add

1
add : (Int32, Int32) -> Int32

Integer addition.

Int32.sub

1
sub : (Int32, Int32) -> Int32

Integer subtraction.

Int32.mul

1
mul : (Int32, Int32) -> Int32

Integer multiplication.

Int32.div

1
div : (Int32, Int32) -> Int32

Integer division.

Int32.divU

1
divU : (Int32, Int32) -> Int32

Unsigned integer division.

Int32.rem

1
rem : (Int32, Int32) -> Int32

Integer remainder.

Int32.remU

1
remU : (Int32, Int32) -> Int32

Unsigned integer remainder.

Int32.mod

1
mod : (Int32, Int32) -> Int32

Integer modulo.

Int32.gt

1
gt : (Int32, Int32) -> Bool

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

Int32.gte

1
gte : (Int32, Int32) -> Bool

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

Int32.lt

1
lt : (Int32, Int32) -> Bool

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

Int32.lte

1
lte : (Int32, Int32) -> Bool

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

Int32.lnot

1
lnot : Int32 -> Int32

Computes the bitwise logical “not” of the argument.

Int32.land

1
land : (Int32, Int32) -> Int32

Computes the bitwise logical “and” of the two arguments.

Int32.lor

1
lor : (Int32, Int32) -> Int32

Computes the bitwise logical “or” of the two arguments.

Int32.lxor

1
lxor : (Int32, Int32) -> Int32

Computes the bitwise logical “xor” of the two arguments.

Int32.shl

1
shl : (Int32, Int32) -> Int32

Computes the bitwise logical shift left of the first argument by the second argument.

Int32.shr

1
shr : (Int32, Int32) -> Int32

Computes the bitwise arithmetic (signed) shift right of the first argument by the second argument.

Int32.shrU

1
shrU : (Int32, Int32) -> Int32

Computes the unsigned bitwise logical shift right of the first argument by the second argument.

This is a notification!