Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

floor returns the largest integer smaller than or equal to a number.

Syntax

floor(number x)
  • x is the number to return the largest integer smaller than or equal to.

Examples

floor(1.5) // 1

floor(-1.5) // -2