Skip to main content

format_refresh_rate

Function format_refresh_rate 

Source
pub fn format_refresh_rate(refresh: f64) -> String
Expand description

Format a refresh rate value for display.

Integers (e.g. 60.0) are rendered without decimals; non-integer values (e.g. 59.94) are rounded to two decimal places.