Skip to main content

div_round_bankers

Function div_round_bankers 

Source
pub const fn div_round_bankers(num: i128, den: i128) -> i64
Expand description

Integer division with round-half-to-even (banker’s rounding) for minor-unit (i64) and basis-point (i128) monetary arithmetic. Zero heap allocation, zero float math.