Int64
64-bit signed integers with checked arithmetic
Most operations are available as built-in operators (e.g. 1 + 1
).
toInt
let toInt : Int64 -> Int
Conversion.
fromInt
let fromInt : Int -> Int64
Conversion. Traps on overflow/underflow.
fromIntWrap
let fromIntWrap : Int -> Int64
Conversion. Wraps on overflow/underflow.
fromNat64
let fromNat64 : Nat64 -> Int64
Conversion. Wraps on overflow/underflow.
toNat64
let toNat64 : Int64 -> Nat64
Conversion. Wraps on overflow/underflow.
toText
func toText(x : Int64) : Text
Returns the Text representation of x
.
bittest
func bittest(x : Int64, p : Nat) : Bool
Returns the value of bit p mod 64
in x
, (x & 2^(p mod 64)) == 2^(p mod 64)
.