forked from Rust-related/RustPython
The previous implementation truncated even 10.0 to 1, because it cut away any combination of trailing 0's and .'s.
The previous implementation truncated even 10.0 to 1, because it cut away any combination of trailing 0's and .'s.