Skip to content

Commit

Permalink
This is only meant for decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
uellenberg committed May 3, 2021
1 parent c757805 commit e794fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decimalsystem",
"version": "1.0.4",
"version": "1.0.5",
"description": "An experimental library for converting numbers to non-integer (decimal) bases.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/Num.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Num {
continue;
}

if(digitStr !== "0") {
if(digitStr !== "0" || digits.length < digitLog) {
digits.push(...toAdd, digitStr);
toAdd = [];
}
Expand Down

0 comments on commit e794fc6

Please sign in to comment.