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
Using 0.2.1 cast::i64(-0.1f64) returns Ok(0) but cast::u64(-0.1f64) returns Err(Underflow). I would expect the latter to also return Ok(0) as float to int conversions truncate towards 0 and 0 can be represented in a u64 just fine.
The text was updated successfully, but these errors were encountered:
Using 0.2.1
cast::i64(-0.1f64)
returnsOk(0)
butcast::u64(-0.1f64)
returnsErr(Underflow)
. I would expect the latter to also returnOk(0)
as float to int conversions truncate towards 0 and 0 can be represented in au64
just fine.The text was updated successfully, but these errors were encountered: