Module std::f32

Operations and constants for f32

Reexports

pub use cmath::c_float_targ_consts::*;

Modules

consts
delegated

Statics

pub static NaN: f32 = 0.0_f32/0.0_f32  
pub static infinity: f32 = 1.0_f32/0.0_f32  
pub static neg_infinity: f32 = -1.0_f32/0.0_f32  

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