pub fn units_from_amount(amount: &str, rate: UnitRate) -> Result<u64, CostError>
A decimal amount as reported, times the rate, rounded up to whole units.