Actions
Bug #6452
open![Author: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
round#2 and round-half-to-even#2 give incorrect results on large negative integers
Start date:
2024-06-14
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
Given $x = -888_888_888_888_888_888_888
, both round($x, -3)
and round-half-to-even($x, -3)
return --888_888_888_888_888_888_000
rather than -888_888_888_888_888_889_000
.
Applies when the value is too large to store in a 64 bit integer, or when for some other reason the system has decided to use a BigInteger representation.
No data to display
Please register to edit this issue
Actions