to_dec_string

Function to_dec_string 

Source
pub fn to_dec_string<T>(val: &Ratio<T>, frac_digit_count: usize) -> String
where T: Clone + Display + From<u8> + Integer + Pow<usize, Output = T>,
Expand description

Returns a String representing val in decimal notation with frac_digit_count fractional digits using normal rounding rules.

ยงPanics

May panic if T implements arithmetic in a way where panics occur on overflow or underflow.