package integers
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9c9a7e5ace7252d2e020cde7e02ac9e2eb475d68ef22528726bce1cbd96cb70d
md5=28715567848f07aa688a09496041731b
doc/integers/Unsigned/UInt64/index.html
Module Unsigned.UInt64
Unsigned 64-bit integer type and operations.
include S
Division. Raise Division_by_zero
if the second argument is zero.
Integer remainder. Raise Division_by_zero
if the second argument is zero.
val max_int : t
The greatest representable integer.
shift_left
x
y
shifts x
to the left by y
bits.
shift_right
x
y
shifts x
to the right by y
bits.
val of_int : int -> t
Convert the given int value to an unsigned integer.
val to_int : t -> int
Convert the given unsigned integer value to an int.
val of_string : string -> t
Convert the given string to an unsigned integer. Raise Failure
"int_of_string"
if the given string is not a valid representation of an unsigned integer.
val to_string : t -> string
Return the string representation of its argument.
val zero : t
The integer 0.
val one : t
The integer 1.
The comparison function for unsigned integers, with the same specification as Pervasives.compare
.
Tests for equality, with the same specification as Pervasives.(=)
.
val pp : Format.formatter -> t -> unit
Output the result of to_string
on a formatter.
module Infix : sig ... end
Infix names for the unsigned integer operations.
val of_int64 : int64 -> t
val to_int64 : t -> int64
Convert the given 32-bit unsigned integer to a 64-bit unsigned integer.