tools/rc/to_f64.rs
author nemo
Thu, 10 Aug 2023 20:48:54 -0400
changeset 16003 8bb07b0f50ca
parent 15981 5aed6c0b63e2
permissions -rw-r--r--
add some round() so that the scale factor compiles at least with non-integer values

pub fn to_f64<T: Into<f64>>(v: T) -> f64 {
    v.into()
}