This commit is contained in:
2025-05-11 11:54:21 +02:00
parent 4144e694c0
commit 827cb66b4e
13 changed files with 234 additions and 257 deletions
+1 -4
View File
@@ -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)