round_down_to_step

Function round_down_to_step 

Source
pub fn round_down_to_step(qty: Decimal, step_size: Decimal) -> Decimal
Expand description

Round quantity down to the nearest valid step size