module LDouble:sig
..end
type
t
val to_float : t -> float
float
.val of_float : float -> t
val to_int : t -> int
val of_int : int -> t
val to_string : ?width:int -> ?prec:int -> t -> string
width
specifies the minimum number of digits to format the string
with. A negative value left aligns. The default is 0.
prec
specifies the number of digits after the decimal point.
The default is 6.
val of_string : string -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val div : t -> t -> t
val neg : t -> t
val pow : t -> t -> t
val sqrt : t -> t
val exp : t -> t
val log : t -> t
val log10 : t -> t
val expm1 : t -> t
expm1 x
computes exp x -. 1.0
, giving numerically-accurate results
even if x
is close to 0.0
.val log1p : t -> t
log1p x
computes log(1.0 +. x)
(natural logarithm),
giving numerically-accurate results even if x
is close to 0.0
.val cos : t -> t
val sin : t -> t
val tan : t -> t
val acos : t -> t
val asin : t -> t
val atan : t -> t
val atan2 : t -> t -> t
atan2 y x
returns the arc tangent of y /. x
.val hypot : t -> t -> t
val cosh : t -> t
val sinh : t -> t
val tanh : t -> t
val acosh : t -> t
val asinh : t -> t
val atanh : t -> t
val ceil : t -> t
val floor : t -> t
val abs : t -> t
abs f
returns absolute value of f
val rem : t -> t -> t
rem x y
is the remainder of dividing x by yval copysign : t -> t -> t
copysign x y
returns a float whose absolute value is that of x
and whose sign is that of y
.val frexp : t -> t * int
frexp f
returns the pair of the significant and the exponent of f
.val ldexp : t -> int -> t
ldexp x n
returns x *. 2 ** n
.val modf : t -> t * t
(fractional,integer)
parts of number.
Known fatal bug on mingw32; see https://sourceforge.net/p/mingw-w64/bugs/478
val classify : t -> Pervasives.fpclass
val min_float : t
val max_float : t
val epsilon : t
1.0
and the smallest exactly representable
floating-point number greater than 1.0
.val nan : t
0.0 /. 0.0
. Stands for
'not a number'.val infinity : t
val neg_infinity : t
val zero : t
val one : t
val byte_sizes : int * int