changes
This commit is contained in:
+1
-4
@@ -46,10 +46,7 @@ func FloatToNumeric(number float64, precision int) (value pgtype.Numeric) {
|
||||
}
|
||||
|
||||
func AddNumeric(a, b pgtype.Numeric) pgtype.Numeric {
|
||||
minExp := a.Exp
|
||||
if b.Exp < minExp {
|
||||
minExp = b.Exp
|
||||
}
|
||||
minExp := min(a.Exp, b.Exp)
|
||||
|
||||
aInt := new(big.Int).Set(a.Int)
|
||||
bInt := new(big.Int).Set(b.Int)
|
||||
|
||||
Reference in New Issue
Block a user