Usage

floor(val)

Description
Returns the given value, rounded down to the nearest integer. This method tries to convert its parameter objects into numerical values, i.e. you can use strings as arguments.

Example

${floor(5.8)}

results in

5.0

Graph-Browser

Related Articles
About this article
Last change 2018-05-04
Topics FrontendFunctionsStructr 2.0