Home
last modified time | relevance | path

Searched refs:decimal_length9 (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/ryu/tests/
Dcommon_test.rs30 assert_eq!(1, decimal_length9(0)); in test_decimal_length9()
31 assert_eq!(1, decimal_length9(1)); in test_decimal_length9()
32 assert_eq!(1, decimal_length9(9)); in test_decimal_length9()
33 assert_eq!(2, decimal_length9(10)); in test_decimal_length9()
34 assert_eq!(2, decimal_length9(99)); in test_decimal_length9()
35 assert_eq!(3, decimal_length9(100)); in test_decimal_length9()
36 assert_eq!(3, decimal_length9(999)); in test_decimal_length9()
37 assert_eq!(9, decimal_length9(999999999)); in test_decimal_length9()
/external/rust/crates/ryu/src/
Dcommon.rs24 pub fn decimal_length9(v: u32) -> u32 { in decimal_length9() function
/external/rust/crates/ryu/src/pretty/
Dmod.rs179 let length = common::decimal_length9(v.mantissa) as isize; in format32()