diff --git a/pgtype/numeric.go b/pgtype/numeric.go index dc844f2d3..2444be017 100644 --- a/pgtype/numeric.go +++ b/pgtype/numeric.go @@ -762,7 +762,7 @@ func (scanPlanTextAnyToNumericScanner) Scan(src []byte, dst any) error { if strings.ContainsAny(string(src), "eE") { if bigF, ok := new(big.Float).SetString(string(src)); ok { smallF, _ := bigF.Float64() - src = []byte(strconv.FormatFloat(smallF, 'f', -1, int(bigF.Prec()))) + src = []byte(strconv.FormatFloat(smallF, 'f', -1, 64)) } }