freq_mhz

Function freq_mhz 

Source
pub fn freq_mhz(hz: u32) -> String
Expand description

Format a frequency in megahertz for natural speech output.

Trailing zeros are stripped, but a trailing decimal with a single zero is kept so 146.5 megahertz reads cleanly. Values below 1 Hz render as 0 megahertz.