Math.purs 173 Bytes
Newer Older
1 2 3 4 5 6
module Gargantext.Utils.Math where

import Prelude
import Math as Math

roundToMultiple :: Number -> Number -> Number
7
roundToMultiple eps num = eps * Math.round (num / eps)