Skip to main content

mul_div_u64

Function mul_div_u64 

Source
pub fn mul_div_u64(value: u64, numerator: u64, denom: u64) -> u64
Expand description

Computes (value*numerator)/denom without overflow, as long as both numerator*denom and the overall result fit into u64 (which is the case for our time conversions).