Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Issue 1442041: code review 1442041: strconv.Ftoa: fixes a precision error

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 10 months ago by danielfleischman
Modified:
1 year, 4 months ago
Reviewers:
CC:
golang-dev
Visibility:
Public.

Description

strconv.Ftoa: fixes a precision error Ftoa64(float64(0.09), 'f', 1) should return "0.1", but returns "0.0" With this changeset this is fixed, but now Atof64("4e-324") returns 5e-324 and not 0 as it used to. printf("%.1g", 4e-324); prints 5e-324 in gcc 4.4.3 (glibc 2.10.1). Fixes issue 822.

Patch Set 1 : code review 1442041: strconv.Ftoa: fixes a precision error #

Total comments: 4

Patch Set 2 : code review 1442041: strconv.Ftoa: fixes a precision error #

Patch Set 3 : code review 1442041: strconv.Ftoa: fixes a precision error #

Patch Set 4 : code review 1442041: strconv.Ftoa: fixes a precision error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M src/pkg/strconv/atof_test.go View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/pkg/strconv/decimal.go View 1 4 chunks +5 lines, -5 lines 0 comments Download
M src/pkg/strconv/ftoa_test.go View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12
danielfleischman
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 10 months ago (2010-06-01 03:30:33 UTC) #1
rsc
Thanks for looking into this. Could you please complete the CLA as described at http://golang.org/doc/contribute.html#copyright ...
14 years, 10 months ago (2010-06-02 02:18:39 UTC) #2
danielfleischman
Done. On Tue, Jun 1, 2010 at 23:18, Russ Cox <rsc@golang.org> wrote: > Thanks for ...
14 years, 10 months ago (2010-06-02 04:29:47 UTC) #3
rsc1
Thanks for fixing this. I'm still not sure I understand where the bug is or ...
14 years, 10 months ago (2010-06-02 23:38:45 UTC) #4
danielfleischman
On Wed, Jun 2, 2010 at 20:38, <rsc@google.com> wrote: > Thanks for fixing this. :-) ...
14 years, 10 months ago (2010-06-03 00:41:50 UTC) #5
danielfleischman
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-06-03 00:46:06 UTC) #6
danielfleischman
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-06-03 00:51:42 UTC) #7
danielfleischman
The last review was only to add one more test case that I think is ...
14 years, 10 months ago (2010-06-03 00:54:03 UTC) #8
danielfleischman
Following up. On Wed, Jun 2, 2010 at 21:53, Daniel Fleischman <danielfleischman@gmail.com>wrote: > The last ...
14 years, 10 months ago (2010-06-06 07:45:22 UTC) #9
danielfleischman
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2010-06-15 10:26:21 UTC) #10
rsc
Thanks for figuring this out. Rob and I were working on a different floating point ...
14 years, 9 months ago (2010-06-29 23:49:05 UTC) #11
rsc1
14 years, 8 months ago (2010-07-29 01:19:21 UTC) #12
(removing reviewers)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b