Skip to main content

periods_as_f64

Function periods_as_f64 

fn periods_as_f64(n: usize) -> f64
Expand description

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.