Open amab8901 opened 5 months ago
We can only add this if there's a generic implementation. Have you attempted that?
yes, I created a crate for this: https://crates.io/crates/round_float
The code is here: https://github.com/amab8901/round_float/blob/master/src/round_float.rs
Add
round_to_digit
method toFloat
trait.Example usage