Module std::f64

Operations and constants for f64

Reexports

pub use cmath::c_double_targ_consts::*;
pub use cmp::{min, max};

Modules

consts
delegated

Statics

pub static NaN: f64 = 0.0_f64/0.0_f64  
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 neg_infinity: f64 = -1.0_f64/0.0_f64  
pub static radix: uint = 2u  

Functions

from_str_hex

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

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_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