2
0

bitsize largest option is 64

This commit is contained in:
Eshton Robateau
2023-11-24 07:39:08 +08:00
committed by Jack Christensen
parent 905f252667
commit 12582a0fd4
+1 -1
View File
@@ -762,7 +762,7 @@ func (scanPlanTextAnyToNumericScanner) Scan(src []byte, dst any) error {
if strings.ContainsAny(string(src), "eE") { if strings.ContainsAny(string(src), "eE") {
if bigF, ok := new(big.Float).SetString(string(src)); ok { if bigF, ok := new(big.Float).SetString(string(src)); ok {
smallF, _ := bigF.Float64() smallF, _ := bigF.Float64()
src = []byte(strconv.FormatFloat(smallF, 'f', -1, int(bigF.Prec()))) src = []byte(strconv.FormatFloat(smallF, 'f', -1, 64))
} }
} }