module LDouble:sig..end
type t
The type of long doubles.
val to_float : t -> floatConvert a long double to a float. The result is unspecified if the argument is
either too large or too small to be represented as a float.
val of_float : float -> tCreate a long double from a float
val to_int : t -> intConvert a long double to an int. The result is unspecified if the argument is NAN or falls outside the range of representable integers.
val of_int : int -> tCreate a long double from an int
val to_string : ?width:int -> ?prec:int -> t -> stringConvert a long double to a 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 -> tCreate a long double from a string
val add : t -> t -> tAddition
val sub : t -> t -> tSubtraction
val mul : t -> t -> tMultiplication
val div : t -> t -> tDivision
val neg : t -> tNegation
val pow : t -> t -> tExponentiation
val sqrt : t -> tSquare root
val exp : t -> tExponential
val log : t -> tNatural logarithm
val log10 : t -> tBase 10 logarithm
val expm1 : t -> texpm1 x computes exp x -. 1.0, giving numerically-accurate results
even if x is close to 0.0.
val log1p : t -> tlog1p x computes log(1.0 +. x) (natural logarithm),
giving numerically-accurate results even if x is close to 0.0.
val cos : t -> tCosine. Argument is in radians.
val sin : t -> tSine. Argument is in radians.
val tan : t -> tTangent. Argument is in radians.
val acos : t -> tArc cosine
val asin : t -> tArc sine
val atan : t -> tArc tangent
val atan2 : t -> t -> tatan2 y x returns the arc tangent of y /. x.
val hypot : t -> t -> t
val cosh : t -> tHyperbolic cosine
val sinh : t -> tHyperbolic sine
val tanh : t -> tHyperbolic tangent
val acosh : t -> tInverse hyperbolic cosine
val asinh : t -> tInverse hyperbolic sine
val atanh : t -> tInverse hyperbolic tangent
val ceil : t -> tRound above to an integer value.
val floor : t -> tRound below to an integer value.
val abs : t -> tabs f returns absolute value of f
val rem : t -> t -> trem x y is the remainder of dividing x by y
val copysign : t -> t -> tcopysign x y returns a float whose absolute value is that of x
and whose sign is that of y.
val frexp : t -> t * intfrexp f returns the pair of the significant and the exponent of f.
val ldexp : t -> int -> tldexp x n returns x *. 2 ** n.
val modf : t -> t * treturn (fractional,integer) parts of number.
Known fatal bug on mingw32; see https://sourceforge.net/p/mingw-w64/bugs/478
val classify : t -> Stdlib.fpclassReturn the class of the given floating-point number: normal, subnormal, zero, infinite, or not a number.
val min_float : tThe smallest positive, non-zero, non-denormalized value
val max_float : tThe largest positive finite value
val epsilon : tThe difference between 1.0 and the smallest exactly representable
floating-point number greater than 1.0.
val nan : tA special floating-point value denoting the result of an
undefined operation such as 0.0 /. 0.0. Stands for
'not a number'.
val infinity : tPositive infinity
val neg_infinity : tNegative infinity
val zero : t0.0
val one : t1.0
val byte_sizes : int * intsize, in bytes, used for storing long doubles, and the actual number of bytes used by the value. (unused bytes may contain undefined values)
val mant_dig : intsize of mantissa