krisajenkins/elm-exts/27.4.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Int

Extensions to the core Int library.

floorBy : Int -> Int -> Maybe 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