Module std::float

Operations and constants for float

Modules

consts

Statics

pub static NaN: float = 0.0/0.0  
pub static infinity: float = 1.0/0.0  
pub static neg_infinity: float = -1.0/0.0  

Functions

from_str_hex

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

pow_with_uint

Compute the exponentiation of an integer by another integer as a float

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