fn periods_as_f64(n: usize) -> f64
A whole-period count as a float. A bond has few periods, so the conversion cannot lose anything; written out rather than cast so the pedantic lints stay on.