core: Implement f32/f64 formatting
This is a migration of the std::{f32, f64}::to_str* functionality to the core library. This removes the growable `Vec` used in favor of a large stack buffer. The maximum base 10 exponent for f64 is 308, so a stack buffer of 512 bytes should be sufficient to store all floats.
Showing
src/libcore/fmt/float.rs
0 → 100644
想要评论请 注册 或 登录