AltErgoLib.Fpa_roundingval fpa_rounding_mode : Ty.tval rounding_mode_of_hs : Hstring.t -> rounding_modeval integer_log_2 : Numbers.Q.t -> intInteger part of binary logarithm for NON-ZERO POSITIVE number *
val float_of_rational :
int ->
int ->
rounding_mode ->
Numbers.Q.t ->
Numbers.Q.t * Numbers.Z.t * intfloat_of_rational prec exp mode x float approx of a rational constant. The function also returns the mantissa and the exponent. i.e. if res, m, e = float_of_rational prec exp mode x, then res = m * 2^e *
val round_to_integer : rounding_mode -> Numbers.Q.t -> Numbers.Q.tround_to_integer mode x rounds the rational x to an integer depending on the rounding mode mode