Integers
Standard Library
This module contains everything defined for integers by the OCaml standard library. For these functions, refer to the official documentation.
include module type of Stdlib.Int
val add : int -> int -> intval sub : int -> int -> intval mul : int -> int -> intval div : int -> int -> intval rem : int -> int -> intval logand : int -> int -> intval logor : int -> int -> intval logxor : int -> int -> intval shift_left : int -> int -> intval shift_right : int -> int -> intval shift_right_logical : int -> int -> intval equal : int -> int -> boolval compare : int -> int -> intval min : int -> int -> intval max : int -> int -> intval to_float : int -> floatval of_float : float -> intval to_string : int -> stringval seeded_hash : int -> int -> intAdditional Contents
Printing Numbers as English Words
For compatibility with all platforms, including 32-bit platforms or JS extraction, these functions are defined in the 64-bit integer modules NesInt64. Refer to this module for the documentation.
val to_english_string : int -> stringval to_english_string_times : int -> string