Rounds towards zero. Thus the magnitude of the rounded value is always smaller or equal to the magnitude of the input value. In case a 'multiple' is supplied, the value will be rounded to the next multiple of that value hence to an integer.
Floor( x ) Floor( x, #multiple )
X | Number to be rounded. |
---|---|
#multiple | The multiple the value should be rounded to. Zero is not allowed here |
Numeric value
Floor (3.2) //3 Floor (1.5) //1 Floor (-7.7) //-8 Floor (3.2, 2) //2 Floor (1.5, 2) //0 Floor (-7.7, 5) //-10