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

Issue 178140043: code review 178140043: math/big: first cut at multi-precision Floats

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by gri
Modified:
7 hours, 5 minutes ago
Reviewers:
fundasecgin32
CC:
adonovan, golang-codereviews
Visibility:
Public.

Description

math/big: first cut at multi-precision Floats - implemented all rounding modes - implemented +, -, *, /, and some unary ops - implemented basic conversions - written basic documentation With precision set to 24 or 53, the results match float32 or float64 operations exactly. Known bugs: / doesn't round correctly in some cases. CL IN PROGRESS.

Patch Set 1 #

Patch Set 2 : diff -r d7d71f7d6f53e217837d46aedba49db8c8811705 https://code.google.com/p/go/ #

Patch Set 3 : diff -r d7d71f7d6f53e217837d46aedba49db8c8811705 https://code.google.com/p/go/ #

Patch Set 4 : diff -r d7d71f7d6f53e217837d46aedba49db8c8811705 https://code.google.com/p/go #

Total comments: 30

Patch Set 5 : diff -r 321d04dea9d6a457cb4c7375ce3cf625f8836a19 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 321d04dea9d6a457cb4c7375ce3cf625f8836a19 https://code.google.com/p/go/ #

Patch Set 7 : diff -r 321d04dea9d6a457cb4c7375ce3cf625f8836a19 https://code.google.com/p/go/ #

Patch Set 8 : diff -r 321d04dea9d6a457cb4c7375ce3cf625f8836a19 https://code.google.com/p/go/ #

Patch Set 9 : diff -r e8e6ada28fb659fe4256739b4fb0a7357cec9dc8 https://code.google.com/p/go/ #

Patch Set 10 : diff -r e8e6ada28fb659fe4256739b4fb0a7357cec9dc8 https://code.google.com/p/go/ #

Patch Set 11 : diff -r e8e6ada28fb659fe4256739b4fb0a7357cec9dc8 https://code.google.com/p/go/ #

Total comments: 66

Patch Set 12 : diff -r 871468f5ceaf21cccedbae34bb40abc34d0d1737 https://code.google.com/p/go/ #

Patch Set 13 : diff -r 871468f5ceaf21cccedbae34bb40abc34d0d1737 https://code.google.com/p/go/ #

Patch Set 14 : diff -r 871468f5ceaf21cccedbae34bb40abc34d0d1737 https://code.google.com/p/go/ #

Patch Set 15 : diff -r d56c648b069f441b8bc2387265cdc2d781c697fa https://code.google.com/p/go/ #

Patch Set 16 : diff -r d56c648b069f441b8bc2387265cdc2d781c697fa https://code.google.com/p/go/ #

Patch Set 17 : diff -r faa3ed1dc30e42771a68b6337dcf8be9518d5c07 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1508 lines, -31 lines) Patch
A src/math/big/float.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +944 lines, -0 lines 0 comments Download
A src/math/big/float_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +431 lines, -0 lines 0 comments Download
M src/math/big/nat.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 chunks +52 lines, -24 lines 0 comments Download
M src/math/big/nat_test.go View 1 1 chunk +74 lines, -0 lines 0 comments Download
M src/math/big/rat.go View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 12
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years, 10 months ago (2014-11-22 01:26:03 UTC) #1
gri
Sending this out for interested parties. No need for thorough review yet - there's lots ...
10 years, 10 months ago (2014-11-22 01:28:24 UTC) #2
adonovan
API looks good, although you have many docstrings still to add. What's the motivation here? ...
10 years, 10 months ago (2014-11-22 22:09:32 UTC) #3
adonovan
On 2014/11/22 22:09:32, adonovan wrote: > It would be interesting to record and replay the ...
10 years, 10 months ago (2014-11-22 22:10:13 UTC) #4
gri
FYI. https://codereview.appspot.com/178140043/diff/60001/src/math/big/float.go File src/math/big/float.go (right): https://codereview.appspot.com/178140043/diff/60001/src/math/big/float.go#newcode15 src/math/big/float.go:15: // - All operations that round should return ...
10 years, 10 months ago (2014-12-01 19:25:13 UTC) #5
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 10 months ago (2014-12-03 00:09:17 UTC) #6
adonovan
Not just an API review, but I skipped some of the gnarlier methods for now. ...
10 years, 10 months ago (2014-12-03 22:15:03 UTC) #7
gri
thanks https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go File src/math/big/float.go (right): https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go#newcode38 src/math/big/float.go:38: // word x.mant[0]. The zero Float value is ...
10 years, 10 months ago (2014-12-03 23:42:07 UTC) #8
adonovan
https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go File src/math/big/float.go (right): https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go#newcode430 src/math/big/float.go:430: return -v On 2014/12/03 23:42:05, gri wrote: > On ...
10 years, 10 months ago (2014-12-03 23:49:11 UTC) #9
gri
https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go File src/math/big/float.go (right): https://codereview.appspot.com/178140043/diff/190005/src/math/big/float.go#newcode430 src/math/big/float.go:430: return -v On 2014/12/03 23:49:11, adonovan wrote: > On ...
10 years, 10 months ago (2014-12-04 00:06:36 UTC) #10
gobot
R=close To the author of this CL: The Go project has moved to Gerrit Code ...
10 years, 9 months ago (2014-12-19 05:16:29 UTC) #11
fundasecgin32
7 hours, 5 minutes ago (2025-10-06 20:57:45 UTC) #12

          
Sign in to reply to this message.

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