float: operations on floating-point numbers

value int_of_float : float -> int
Truncate the given float to an integer value. The result is unspecified if it falls outside the range of representable integers.
value float_of_int : int -> float
Convert an integer to floating-point.
value minus : float -> float
value minus_float : float -> float
Unary negation.
value prefix + : float -> float -> float
value prefix +. : float -> float -> float
value add_float : float -> float -> float
Addition.
value prefix - : float -> float -> float
value prefix -. : float -> float -> float
value sub_float : float -> float -> float
Subtraction.
value prefix * : float -> float -> float
value prefix *. : float -> float -> float
value mult_float : float -> float -> float
Product.
value prefix / : float -> float -> float
value prefix /. : float -> float -> float
value div_float : float -> float -> float
Division.
value prefix ** : float -> float -> float
value prefix **. : float -> float -> float
value power : float -> float -> float
Exponentiation.
value eq_float : float -> float -> bool
value prefix =. : float -> float -> bool
Floating-point equality. Equivalent to generic equality, just faster.
value neq_float : float -> float -> bool
value prefix <>. : float -> float -> bool
Negation of eq_float.
value prefix <. : float -> float -> bool
value lt_float : float -> float -> bool
value prefix >. : float -> float -> bool
value gt_float : float -> float -> bool
value prefix <=. : float -> float -> bool
value le_float : float -> float -> bool
value prefix >=. : float -> float -> bool
value ge_float : float -> float -> bool
Usual comparisons between floating-point numbers.
value acos : float -> float
value asin : float -> float
value atan : float -> float
value atan2 : float -> float -> float
value cos : float -> float
value cosh : float -> float
value exp : float -> float
value log : float -> float
value log10 : float -> float
value sin : float -> float
value sinh : float -> float
value sqrt : float -> float
value tan : float -> float
value tanh : float -> float
Usual transcendental functions on floating-point numbers.
value ceil : float -> float
value floor : float -> float
Round the given float to an integer value. floor f returns the greatest integer value less than or equal to f. ceil f returns the least integer value greater than or equal to f.
value abs_float : float -> float
Return the absolute value of the argument.
value mod_float : float -> float -> float
fmod a b returns the remainder of a with respect to b.
value frexp : float -> float * int
frexp f returns the pair of the significant and the exponent of f (when f is zero, the significant x and the exponent n of f are equal to zero; when f is non-zero, they are defined by f = x *. 2 ** n).
value ldexp : float -> int -> float
ldexp x n returns x *. 2 ** n.
value modf : float -> float * float
modf f returns the pair of the fractional and integral part of f.
value string_of_float : float -> string
Convert the given float to its decimal representation.
value float_of_string : string -> float
Convert the given string to a float, in decimal. The result is unspecified if the given string is not a valid representation of a float.