Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Issue 59603006: Fix Decimal.floor() + Decimal.ceiling() for most non-integral values. (Closed)

Created:
7 years, 1 month ago by sof
Modified:
7 years, 1 month ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix Decimal.floor() + Decimal.ceiling() for many non-integral values. Extend the check for an integral value to consider all the digits being truncated, and not just the rightmost/most-significant one, when rounding the result towards positive and negative infinity for floor() and ceiling(), respectively. R=yosin,mkwst BUG=234323 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162197

Patch Set 1 #

Total comments: 7

Patch Set 2 : Express integral check via is-power-of-10 predicate instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -8 lines) Patch
M Source/platform/Decimal.cpp View 1 3 chunks +11 lines, -8 lines 0 comments Download
M Source/platform/DecimalTest.cpp View 5 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sof
At your leisure, please take a look.
7 years, 1 month ago (2013-11-15 16:01:23 UTC) #1
yosin_UTC9
Thank for improvment of Decimal package! https://codereview.chromium.org/59603006/diff/1/Source/platform/Decimal.cpp File Source/platform/Decimal.cpp (right): https://codereview.chromium.org/59603006/diff/1/Source/platform/Decimal.cpp#newcode617 Source/platform/Decimal.cpp:617: static bool digitsAllZero(uint64_t ...
7 years, 1 month ago (2013-11-18 03:48:28 UTC) #2
sof
Thanks Yoshi, the Decimal code is v. clean & clear. https://codereview.chromium.org/59603006/diff/1/Source/platform/Decimal.cpp File Source/platform/Decimal.cpp (right): https://codereview.chromium.org/59603006/diff/1/Source/platform/Decimal.cpp#newcode617 ...
7 years, 1 month ago (2013-11-18 06:48:27 UTC) #3
Mike West
LGTM, but you'll need a platform/ owner to sign off on it. Jochen, maybe? On ...
7 years, 1 month ago (2013-11-18 07:09:58 UTC) #4
jochen (gone - plz use gerrit)
rubberstamp lgtm
7 years, 1 month ago (2013-11-18 11:50:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/59603006/50001
7 years, 1 month ago (2013-11-18 11:53:18 UTC) #6
commit-bot: I haz the power
7 years, 1 month ago (2013-11-18 12:50:57 UTC) #7
Message was sent while issue was closed.
Change committed as 162197

Powered by Google App Engine
This is Rietveld 408576698