Skip to content

Commit

Permalink
fix multiple zeros on split_thousand
Browse files Browse the repository at this point in the history
Related issue: Ballasi#11
  • Loading branch information
Laifsyn committed May 27, 2024
1 parent e3ede74 commit 7f29139
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lang/en.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl English {

while !num.is_zero() {
thousands.push((num % bf_1000).to_u64().unwrap());
num /= bf_1000;
num = num.div(&bf_1000).int();
}

thousands
Expand Down
2 changes: 1 addition & 1 deletion src/lang/fr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl French {

while !num.is_zero() {
thousands.push((num % bf_1000).to_u64().unwrap());
num /= bf_1000;
num = num.div(&bf_1000).int();
}

thousands
Expand Down
2 changes: 1 addition & 1 deletion src/lang/uk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ impl Ukrainian {

while !num.is_zero() {
thousands.push((num % bf_1000).to_u64().unwrap());
num /= bf_1000;
num = num.div(&bf_1000).int();
}

thousands
Expand Down

0 comments on commit 7f29139

Please sign in to comment.