githubEdit

Floor

Returns the absolute value of a number

Method Signature

Floor(number=[numeric])

Arguments

Argument
Type
Required
Description
Default

number

numeric

true

Examples

Floor Value of 4.0

Run Examplearrow-up-right

floor( 4.0 );

Result: 4

Floor Value of 4.3

Run Examplearrow-up-right

floor( 4.3 );

Result: 4

Floor Value of 4.7

Run Examplearrow-up-right

Result: 4

Floor Value of -4.3

Run Examplearrow-up-right

Result: -5

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?