Skip to content

Commit

Permalink
doc: added todo for memory saving CONST usage
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed May 22, 2024
1 parent 736cd33 commit 6f0a347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/cruncher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ mod numerics_to_text {
triplets: Vec<&str>,
) -> String {
// chunk the number, ...rxyy
//TODO: These should be constants but as of num_bigint crate v0.4.5 they only have ZERO as a constant
// See related PR https://github.com/rust-num/num-bigint/pull/307
let ten: BigUint = 10.to_biguint().unwrap();
let hundred: BigUint = 100.to_biguint().unwrap();
let thousand: BigUint = 1000.to_biguint().unwrap();
Expand Down

0 comments on commit 6f0a347

Please sign in to comment.