64-Bit Integers
Standard Library
This module contains everything defined for 64-bit integers by the OCaml standard library. For these functions, refer to the official documentation.
include module type of Stdlib.Int64
val add : int64 -> int64 -> int64val sub : int64 -> int64 -> int64val mul : int64 -> int64 -> int64val div : int64 -> int64 -> int64val unsigned_div : int64 -> int64 -> int64val rem : int64 -> int64 -> int64val unsigned_rem : int64 -> int64 -> int64val succ : int64 -> int64val pred : int64 -> int64val logand : int64 -> int64 -> int64val logor : int64 -> int64 -> int64val logxor : int64 -> int64 -> int64val lognot : int64 -> int64val shift_left : int64 -> int -> int64val shift_right : int64 -> int -> int64val shift_right_logical : int64 -> int -> int64val of_int : int -> int64val to_int : int64 -> intval unsigned_to_int : int64 -> int optionval of_float : float -> int64val to_float : int64 -> floatval of_int32 : int32 -> int64val to_int32 : int64 -> int32val of_nativeint : nativeint -> int64val to_nativeint : int64 -> nativeintval of_string : string -> int64val of_string_opt : string -> int64 optionval to_string : int64 -> stringval bits_of_float : float -> int64val float_of_bits : int64 -> floatval compare : t -> t -> intval unsigned_compare : t -> t -> intval equal : t -> t -> boolval seeded_hash : int -> t -> intAdditional Contents
Printing Numbers as English Words
val to_english_string : int64 -> stringSame as to_english_string_unsigned for signed numbers. For instance, to_english_string (-234L) returns "minus two hundred thirty four".
val to_english_string_times : int64 -> stringSame as to_english_string_times_unsigned for signed numbers. For instance, to_english_string_times (-655L) returns "minus six hundred fifty five times" and to_english_string_times_unsigned 2L returns "twice".