You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a conversion problem second to millisecond using BigRational implementation.
It appears that the problem may be related to the floating-point precision of the conversion factor.
Is this bug?
use num::{BigRational,One};use uom::si::bigrational::*;use uom::si::time::{millisecond, second};fnmain(){let t = Time::new::<second>(BigRational::one());eprintln!("{}", t.get::<millisecond>());//Expected: 1000/1, Actual: 1152921504606846976/1152921504606847}
The text was updated successfully, but these errors were encountered:
Hello.
I encountered a conversion problem second to millisecond using BigRational implementation.
It appears that the problem may be related to the floating-point precision of the conversion factor.
Is this bug?
The text was updated successfully, but these errors were encountered: