Closed frewsxcv closed 1 year ago
Hi, thanks for joining on polishing this new crate 😄
The num-traits dep is currently
num-traits
I think we could get away with normal casting to f32 via as f32. If we want to go the extra safe route, we could use f64 instead of f32 and then cast via as f64 as that's more likely not to fail in weird ways 🤔
as f32
f64
f32
as f64
I must have had a typo when I searched! Disregard
Hi, thanks for joining on polishing this new crate 😄
The
num-traits
dep is currentlyI think we could get away with normal casting to f32 via
as f32
. If we want to go the extra safe route, we could usef64
instead off32
and then cast viaas f64
as that's more likely not to fail in weird ways 🤔