floor

Rounds a number down to the nearest whole number. SovLabs Template Engine tries to convert the input to a number before the filter is applied.

Input
  • {{ 1.2 | ceil }}
Output
  • 1

Input
  • {{ 2.0 | ceil }}
Output
  • 2

Input
  • {{ 183.357 | ceil }}
Output
  • 183

Input
  • {{ '3.5' | ceil }}
Output
  • 3