Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed May 7, 2024
1 parent b715dfd commit 65eead9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ object DecimalArithmeticUtil {
decDig -= diff / 2 + 1
intDig = MAX_SCALE - decDig
}
resultScale = intDig + decDig
resultPrecision = decDig
resultPrecision = intDig + decDig
resultScale = decDig
}
case OperationType.MOD =>
resultScale = Math.max(type1.scale, type2.scale)
Expand Down

0 comments on commit 65eead9

Please sign in to comment.