Math.floor()

Round down a number.

Signature

Math.floor(x: Number): Number

Description

Gets the value of x rounded down.

Parameters

Parameter Type Required Description

x

Number

Yes

Number to round down.

Return value

Type Description

Number

Value of x rounded down.

Examples

Math.floor(-45.95)
-46

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!