Int64

GitHub   Edit on GitHub

Operations on the Int64 type.

1
import Int64 from "int64"

Values

Int64.fromNumber

1
fromNumber : Number -> Int64

Coverts the argument from a Number to an Int64.

Int64.toNumber

1
toNumber : Int64 -> Number

Converts the argument from an Int64 to a Number.

Int64.incr

1
incr : Int64 -> Int64

Increments the number by 1.

Int64.decr

1
decr : Int64 -> Int64

Decrements the number by 1.

Int64.add

1
add : (Int64, Int64) -> Int64

Integer addition.

Int64.sub

1
sub : (Int64, Int64) -> Int64

Integer subtraction.

Int64.mul

1
mul : (Int64, Int64) -> Int64

Integer multiplication.

Int64.div

1
div : (Int64, Int64) -> Int64

Integer division.

Int64.divU

1
divU : (Int64, Int64) -> Int64

Unsigned integer division.

Int64.rem

1
rem : (Int64, Int64) -> Int64

Integer remainder.

Int64.remU

1
remU : (Int64, Int64) -> Int64

Unsigned integer remainder.

Int64.mod

1
mod : (Int64, Int64) -> Int64

Integer modulo.

Int64.gt

1
gt : (Int64, Int64) -> Bool

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

Int64.gte

1
gte : (Int64, Int64) -> Bool

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

Int64.lt

1
lt : (Int64, Int64) -> Bool

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

Int64.lte

1
lte : (Int64, Int64) -> Bool

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

Int64.lnot

1
lnot : Int64 -> Int64

Computes the bitwise logical “not” of the argument.

Int64.land

1
land : (Int64, Int64) -> Int64

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

Int64.lor

1
lor : (Int64, Int64) -> Int64

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

Int64.lxor

1
lxor : (Int64, Int64) -> Int64

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

Int64.shl

1
shl : (Int64, Int64) -> Int64

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

Int64.shr

1
shr : (Int64, Int64) -> Int64

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

Int64.shrU

1
shrU : (Int64, Int64) -> Int64

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

This is a notification!