package integers
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b0116f785d62d03ad8873bdaededcdc637aeca6709318ed343f9cc5568bfa1f2
md5=41f6edc33b9a877a1ec96895491b734c
doc/integers/Signed/Long/index.html
Module Signed.Long
Source
The signed long integer type and operations.
include Unsigned.S with type t := t with module Infix := Infix
Division. Raise Division_by_zero
if the second argument is zero.
Integer remainder. Raise Division_by_zero
if the second argument is zero.
shift_left
x
y
shifts x
to the left by y
bits.
shift_right
x
y
shifts x
to the right by y
bits.
Convert the given string to an unsigned integer. Raise Failure
if the given string is not a valid representation of an unsigned integer.
The comparison function for unsigned integers, with the same specification as Pervasives.compare
.
Tests for equality, with the same specification as Pervasives.(=)
.
Convert the given string to an unsigned integer. Returns None
if the given string is not a valid representation of an unsigned integer.
Output the result of to_string
on a formatter.
Output the result of to_hexstring
on a formatter.
shift_right_logical
x
y
shifts x
to the right by y
bits. See Int32.shift_right_logical
.