Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

math/big: wrong answer from Float.Sub #20490

Closed
soniakeys opened this issue May 24, 2017 · 3 comments
Closed

math/big: wrong answer from Float.Sub #20490

soniakeys opened this issue May 24, 2017 · 3 comments
Milestone

Comments

@soniakeys
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +daa0ddd Wed May 24 22:28:33 2017 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOOS="linux"

What did you do?

Called Float.Sub. Passed arguments of opposite sign and used the second argument for the receiver.

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/NdNWBZDJBv

What did you expect to see?

-5
-5

What did you see instead?

-5
-3

@randall77
Copy link
Contributor

@griesemer

@griesemer griesemer self-assigned this May 25, 2017
@griesemer griesemer added this to the Go1.9 milestone May 25, 2017
@gopherbot
Copy link

CL https://golang.org/cl/44150 mentions this issue.

@ALTree
Copy link
Member

ALTree commented May 25, 2017

I thought this was my fault (cda633b) but apparently not, since I can reproduce this in go1.7

I have sent a (tentative) very small fix here: https://go-review.googlesource.com/c/44150/

@golang golang locked and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants