Remove income category from result
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-04-06 20:29:56 +00:00
parent cef62574bb
commit 01c407d4f1
3 changed files with 15 additions and 12 deletions

View File

@ -25,6 +25,13 @@ func FromInt64WithExp(value int64, exp int32) Numeric {
return Numeric{Numeric: pgtype.Numeric{Int: big.NewInt(value), Exp: exp, Status: pgtype.Present}}
}
func (n *Numeric) SetZero() {
n.Exp = 0
n.Int = big.NewInt(0)
n.Status = pgtype.Present
n.NaN = false
}
func (n Numeric) GetFloat64() float64 {
if n.Status != pgtype.Present {
return 0