Function lexical::to_string [−][src]
Expand description
High-level conversion of a number to a decimal-encoded string.
n
- Number to convert to string.
Examples
assert_eq!(lexical::to_string(5), "5");
#[cfg(not(feature = "trim_floats"))]
assert_eq!(lexical::to_string(0.0), "0.0");