mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
math/big: document that Sqrt doesn't set Accuracy
Document that the Float.Sqrt method does not set the receiver's Accuracy field. Updates #37915 Change-Id: Ief1dcac07eacc0ef02f86bfac9044501477bca1c Reviewed-on: https://go-review.googlesource.com/c/go/+/224497 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
d965bb6130
commit
c5058652fd
2 changed files with 5 additions and 2 deletions
|
|
@ -224,7 +224,9 @@ func (x *Float) Mode() RoundingMode {
|
|||
return x.mode
|
||||
}
|
||||
|
||||
// Acc returns the accuracy of x produced by the most recent operation.
|
||||
// Acc returns the accuracy of x produced by the most recent
|
||||
// operation, unless explicitly documented otherwise by that
|
||||
// operation.
|
||||
func (x *Float) Acc() Accuracy {
|
||||
return x.acc
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue