Skip to content

Commit

Permalink
fix wrong exponent
Browse files Browse the repository at this point in the history
  • Loading branch information
horpto authored and jackc committed Jul 22, 2023
1 parent 50933c0 commit 0458fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numeric.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func parseNumericString(str string) (n *big.Int, exp int32, err error) {
if idx == -1 {
for len(str) > 1 && str[len(str)-1] == '0' && str[len(str)-2] != '-' {
str = str[:len(str)-1]
exp = 1
exp++
}
} else {
exp = int32(-(len(str) - idx - 1))
Expand Down

0 comments on commit 0458fa6

Please sign in to comment.