(precision: usize, alternate_form: bool)
| 48 | } |
| 49 | |
| 50 | pub const fn decimal_point_or_empty(precision: usize, alternate_form: bool) -> &'static str { |
| 51 | match (precision, alternate_form) { |
| 52 | (0, true) => ".", |
| 53 | _ => "", |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | pub fn format_fixed(precision: usize, magnitude: f64, case: Case, alternate_form: bool) -> String { |
| 58 | match magnitude { |
no outgoing calls
no test coverage detected