= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Types
Exceptions
Constructors and conversions
Money
val money_of_cents_string : string -> money
val money_of_units_int : int -> money
val money_to_float : money -> float
val money_to_string : money -> string
Decimals
val decimal_of_string : string -> decimal
val decimal_to_string : max_prec_digits:int -> decimal -> string
val decimal_of_float : float -> decimal
val decimal_to_float : decimal -> float
Integers
val integer_of_string : string -> integer
val integer_to_string : integer -> string
val integer_to_int : integer -> int
val integer_of_int : int -> integer
val integer_log2 : integer -> int
Dates
val date_to_string : date -> string
val date_of_numbers : int -> int -> int -> date
Usage: date_of_numbers year month day
Durations
val duration_of_numbers : int -> int -> int -> duration
val duration_to_days_months_years : duration -> int * int * int
val duration_to_string : duration -> string
Defaults
Operators
Money
Integers
Decimals
Dates
Durations
Arrays
val array_length : 'a array -> integer