Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom authored Jun 9, 2024
1 parent c54426f commit 3d240bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/unit/parseUnits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function parseUnits(value: string, decimals: number) {
const negative = integer.startsWith('-')
if (negative) integer = integer.slice(1)

// trim leading zeros.
// trim trailing zeros.
fraction = fraction.replace(/(0+)$/, '')

// round off if the fraction is larger than the number of decimals.
Expand Down

0 comments on commit 3d240bc

Please sign in to comment.