Open etiennebacher opened 1 week ago
This is going to be a bit tricky, involving f64::trunc
and then I think manually shifting the mantissa being careful with handling shifts larger than the width.
EDIT: actually the simplest implementation will be to just use x.trunc().rem_euclid(uT::MAX + 1) as uT
for now at least.
Checks
Reproducible example
Log output
Issue description
In
cast()
, the argumentwrap_numerical
has a different output depending on whether the input column is float or int:Expected behavior
I suppose it should wrap the value in both cases.
Installed versions