[src]

Module std::f64

Operations and constants for 64-bits floats (f64 type)

consts

Various useful constants.

pub static DIGITS: uint = 15u  
pub static EPSILON: f64 = 2.2204460492503131e-16_f64  
pub static INFINITY: f64 = 1.0_f64/0.0_f64  
pub static MANTISSA_DIGITS: uint = 53u  
pub static MAX_10_EXP: int = 308  
pub static MAX_EXP: int = 1024  
pub static MAX_VALUE: f64 = 1.7976931348623157e+308_f64  
pub static MIN_10_EXP: int = -307  
pub static MIN_EXP: int = -1021  
pub static MIN_VALUE: f64 = 2.2250738585072014e-308_f64  
pub static NAN: f64 = 0.0_f64/0.0_f64  
pub static NEG_INFINITY: f64 = -1.0_f64/0.0_f64  
pub static RADIX: uint = 2u  
abs
abs_sub
acos
asin
atan
atan2
cbrt
ceil
copysign
cos
cosh
exp
exp2
exp_m1
floor
frexp
from_str_hex

Convert a string in base 16 to a float. Accepts an optional binary exponent.

hypot
ldexp
ln
ln_1p
log10
log2
mul_add
nearbyint
next_after
pow
powi
rint
round
sin
sinh
sqrt
tan
tanh
to_str

Converts a float to a string

to_str_digits

Converts a float to a string with a maximum number of significant digits

to_str_exact

Converts a float to a string with exactly the number of provided significant digits

to_str_exp_digits

Converts a float to a string using the exponential notation with the maximum number of digits after the decimal point in the significand

to_str_exp_exact

Converts a float to a string using the exponential notation with exactly the number of provided digits after the decimal point in the significand

to_str_hex

Converts a float to a string in hexadecimal format

to_str_radix_special

Converts a float to a string in a given radix, and a flag indicating whether it's a special value

trunc