[BUG] bround and round do not return the correct result for some decimal values. #9309
Labels
bug
Something isn't working
cudf_dependency
An issue or PR with this label depends on a new feature in cudf
Describe the bug
As a part of testing
format_number
I discovered that bround, which does half even rounding, is returning the wrong value for some decimal inputs.A decimal(38,37) with the value
0.0312500000000000000000000000000000000
when you bround it to 4 places will return0.0312
on the GPU, but0.0313
on the CPU. The CPU version is correct because 5 rounds up.This just calls directly into CUDF so I think this is actually a bug in CUDF. I'll try to come up with a repro case there and file an issue.
The text was updated successfully, but these errors were encountered: