Project

Profile

Help

Bug #6452

open

round#2 and round-half-to-even#2 give incorrect results on large negative integers

Added by Michael Kay about 1 month ago.

Status:
New
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
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

Also available in: Atom PDF