macro_rules! ppm {
($whole:tt . $frac:tt %) => { ... };
($whole:tt %) => { ... };
($amount:expr) => { ... };
}Expand description
A convenient, const-friendly way to build a Ppm from a ppm literal
or percent literal.
Ex: ppm!(1230) -> Ppm::new(1230)
Ex: ppm!(0.123%) -> Ppm::new(1230)