math.clamp Clamp an integer to an inclusive range, refusing a range whose bounds are the wrong way round. clamp in Rust mathclampboundlimit 1.0.0py rs ts12 tests
money.compare Compare two amounts of one currency, refusing to compare across currencies; min, max and clamp too. A group of 4: compare_money, min_money, max_money, clamp_money moneycomparecomparisonmin 2.0.0py rs ts39 tests