Function std::num::strconv::float_to_str_bytes_common[src]

pub fn float_to_str_bytes_common<T: NumCast + Zero + One + PartialEq + PartialOrd + Float + Div<T, T> + Neg<T> + Rem<T, T> + Mul<T, T>>(num: T, radix: uint, negative_zero: bool, sign: SignFormat, digits: SignificantDigits, exp_format: ExponentFormat, exp_upper: bool) -> (Vec<u8>, bool)

Converts a number to its string representation as a byte vector. This is meant to be a common base implementation for all numeric string conversion functions like to_str() or to_str_radix().

Arguments

Return value

A tuple containing the byte vector, and a boolean flag indicating whether it represents a special value like inf, -inf, NaN or not. It returns a tuple because there can be ambiguity between a special value and a number representation at higher bases.

Failure