Change-Id: I25c8e8b701d6489f360fea30d09090826276b950
GitHub-Last-Rev:
c2c8319dd5fa2a53fe82b10ecbf45eb54b5d6a68
GitHub-Pull-Request: golang/go#54924
Reviewed-on: https://go-review.googlesource.com/c/go/+/428976
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
e2 := exp
if b := bits.Len32(mant); b < 25 {
mant <<= uint(25 - b)
- e2 += int(b) - 25
+ e2 += b - 25
}
// Choose an exponent such that rounded mant*(2^e2)*(10^q) has
// at least prec decimal digits, i.e
e2 := exp
if b := bits.Len64(mant); b < 55 {
mant = mant << uint(55-b)
- e2 += int(b) - 55
+ e2 += b - 55
}
// Choose an exponent such that rounded mant*(2^e2)*(10^q) has
// at least prec decimal digits, i.e
}
// render digits (similar to formatBits)
n := uint(prec)
- d.nd = int(prec)
+ d.nd = prec
v := m
for v >= 100 {
var v1, v2 uint64