pub fn percent_to_char_width(&self, percent: u8) -> u16 {
        let mut i = ((self.width_chars as f32 / 100f32) * percent as f32) as u16;
        if i == 0 { i = 1; }
        i
    }
/// Return the width in chars of `percent`% of the screen. Always rounds down
/// to the nearest integer, and is never < 1.
Return the width in chars of `percent`% of the screen. Always rounds down
to the nearest integer, and is never < 1.
Return the width in chars of ` percent ` % of the screen . Always rounds down to the nearest integer and is never < 1 .
pub fn percent_to_char_width(&self, percent: u8) -> u16 {
        let mut i = ((self.width_chars as f32 / 100f32) * percent as f32) as u16;
        if i == 0 { i = 1; }
        i
    }
pub fn percent_to_char_width ( & self , percent : u8 ) -> u16 { let mut i = ( ( self . width_chars as f32 / 100f32 ) * percent as f32 ) as u16 ; if i == 0 { i = 1 ; } i }
Return the width in chars of `percent`% of the screen.
Return the width in chars of ` percent ` % of the screen .
&self
percent
u8
&self
percent
u8