MCPcopy Create free account
hub / github.com/elftausend/graplot / count_tens

Function count_tens

src/eval.rs:24–32  ·  view source on GitHub ↗
(mut num: f64)

Source from the content-addressed store, hash-verified

22}
23
24pub fn count_tens(mut num: f64) -> u128 {
25 let mut count = 1;
26 while num > 10. {
27 num /= 10.;
28 count *= 10;
29 }
30 //10u128.pow(count)
31 count
32}
33
34pub fn count_inv_tens(mut num: f64) -> u128 {
35 let mut count = 1;

Callers 3

get_font_size_xFunction · 0.85
get_font_size_yFunction · 0.85
max_displayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected