Skip to content

Commit

Permalink
修复 issues #8 小数问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Millent committed Feb 23, 2024
1 parent dee7d65 commit 8aeb71b
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 32 deletions.
11 changes: 2 additions & 9 deletions dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ import Currency from "../src";


console.log(
Currency.stringify('3', {
isCurrency: false,
lang: Currency.Language.zh_sc
})
+
'点'
+
Currency.stringify('45', {
isCurrency: false,
Currency.stringify('0.5', {
isCurrency: true,
lang: Currency.Language.zh_sc
})
// 8 0000 0001
Expand Down
2 changes: 1 addition & 1 deletion dist/nomoney.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 18 additions & 8 deletions lib/core/currency.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8aeb71b

Please sign in to comment.