We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e904a commit 58fe27cCopy full SHA for 58fe27c
src/number-format.js
@@ -86,7 +86,7 @@ export default function NumberFormat(config = options) {
86
parts[0] = parts[0].toString().replace(/(\d)(?=(?:\d{3})+\b)/gm, `$1${this.options.separator}`)
87
if (this.isClean) {
88
parts[1] = this.toNumber(`.${parts[1]}`).toString().replace('0.', '')
89
- return parts[1] && parts[1] >= 0 ? parts.join(this.options.decimal) : parts[0]
+ return parts[1] && parts[1] > 0 ? parts.join(this.options.decimal) : parts[0]
90
}
91
return parts.join(this.options.decimal)
92
0 commit comments