]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/math/big/int.go
math/big: rename Int.ToFloat64 to Float64
[gostls13.git] / src / math / big / int.go
index c9788beebd53a9dc49f44863da1904bd163c7096..2cc3d7b4414792acf207941e0945c8efed37f85e 100644 (file)
@@ -450,9 +450,9 @@ func (x *Int) IsUint64() bool {
        return !x.neg && len(x.abs) <= 64/_W
 }
 
-// ToFloat64 returns the float64 value nearest x,
+// Float64 returns the float64 value nearest x,
 // and an indication of any rounding that occurred.
-func (x *Int) ToFloat64() (float64, Accuracy) {
+func (x *Int) Float64() (float64, Accuracy) {
        n := x.abs.bitLen() // NB: still uses slow crypto impl!
        if n == 0 {
                return 0.0, Exact