macro_rules! as_days_f {
($x:expr) => { ... };
}Expand description
Converts total attoseconds (i128) โ lossy float days (Real).
Equivalent to Dt::attos_to_days_f.
ยงExamples
Example shows attos inputs being built with macros rather than counting attosecond zeros by hand.
use deep_time::macros::{as_days_f, days, hours};
// an amount of attoseconds that is equal to
// โ1.5 d becomes -1.5 days
assert_eq!(as_days_f!(-days!(1) - hours!(12)), -1.5);