Extensions to the core Int library.
Int
floorBy : Basics.Int -> Basics.Int -> Maybe Basics.Int
Round an int down to the nearest multiple of a factor.
floorBy 2 143 => Just 142 floorBy 50 143 => Just 100 floorBy 0 143 => Nothing