Macro ezconf::ezconf_float [−][src]
macro_rules! ezconf_float { ($confname:ident: $key:expr, $default:expr) => { ... }; }
Read a float (f64
) from the config
Example
ezconf_file!(CONFIG = "tests/test.toml"); let val = ezconf_float!(CONFIG: "float.a", 123.456); assert!((val - 2.0f64.sqrt()) < 0.0001);