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

Issue 10173014: A 'fix' for issue 2671, toRadixString. (Closed)

Created:
8 years, 8 months ago by srdjan
Modified:
8 years, 8 months ago
Reviewers:
floitsch, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch
Visibility:
Public.

Description

A 'fix' for issue 2671, toRadixString. Committed: https://code.google.com/p/dart/source/detail?r=6948

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M runtime/lib/double.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
This seems the right thing to do and we eliminate the exception being thrown.
8 years, 8 months ago (2012-04-25 00:08:22 UTC) #1
hausner
LGTM under the assumption that it's ok to silently throw away the fractional part of ...
8 years, 8 months ago (2012-04-25 00:16:03 UTC) #2
floitsch
LGTM too. Personally I would move toRadixString on integers anyways (see issue 1895).
8 years, 8 months ago (2012-04-25 06:59:02 UTC) #3
srdjan
8 years, 8 months ago (2012-04-25 14:59:20 UTC) #4
On 2012/04/25 00:16:03, hausner wrote:
> LGTM under the assumption that it's ok to silently throw away the fractional
> part of a number. The library folks may have an issue with that.

I believe it is OK, since there is not appropriate representation for doubles. I
agree with Florian it it would be best to move it to integers. This CL
eliminates the abortion of a program.

Powered by Google App Engine
This is Rietveld 408576698