reading_text

Function reading_text 

Source
pub fn reading_text(value: f64, unit: &str) -> String
Expand description

A reading in a refusal message: rounded to 2 decimals with the trailing zeros dropped (so a temperature converted to °C and back reads 212, not 212.00000000000003), then its unit. From a magnitude of 10^7 on it is written in exponent form to six significant digits (1e160 hPa), so an absurd reading reads in a few characters, never hundreds of digits.