Module type Signed.S
Signed integer operations
include Unsigned.S
val max_int : tThe greatest representable integer.
val shift_left : t -> int -> tshift_leftxyshiftsxto the left byybits.
val shift_right : t -> int -> tshift_rightxyshiftsxto the right byybits.
val of_int : int -> tConvert the given int value to an unsigned integer.
val to_int : t -> intConvert the given unsigned integer value to an int.
val of_int64 : int64 -> tConvert the given int64 value to an unsigned integer.
val to_int64 : t -> int64Convert the given unsigned integer value to an int64.
val of_string : string -> tConvert 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 -> stringReturn the string representation of its argument.
val zero : tThe integer 0.
val one : tThe integer 1.
val compare : t -> t -> intThe comparison function for unsigned integers, with the same specification as
Pervasives.compare.
module Infix : sig ... endInfix names for the unsigned integer operations.
val minus_one : tThe value -1
val min_int : tThe smallest representable integer.
val shift_right_logical : t -> int -> tshift_right_logicalxyshiftsxto the right byybits. SeeInt32.shift_right_logical.
val of_nativeint : nativeint -> tConvert the given nativeint value to a signed integer.
val to_nativeint : t -> nativeintConvert the given signed integer to a nativeint value.
val of_int64 : int64 -> tConvert the given int64 value to a signed integer.
val to_int64 : t -> int64Convert the given signed integer to an int64 value.