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