Toggle navigation
Home
Documentation
Demo
Quick Start
Extending the core
Digging deeper
Examples
Back to functions
floor
floor
Returns the floor of a number. Maps directly to Math.floor(x) if numeric.
Usage:
nerdamer("floor(x)")
Parameters
expression
x
Returns the appropriate value if possible otherwise it returns the function with the simplified expression
Returns
Expression
EXAMPLES:
var x = nerdamer('floor(5/2)').evaluate(); console.log(x.toString());
OUTPUT:
Back to functions
Extending the core
Digging deeper
Examples