floor

Returns the greatest integer less than or equal to x.

Syntax

floor(x)

Parameters

x can be any of the following data types:
long, money, or double.

Examples

  • floor(1.4) = 1
  • floor(1.6) = 1
  • floor(-1.4) = -2
  • floor(-1.6) = -2

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Google apps
Main menu
6963612890520463679
true
Search Help Center
true
true
true
true
true
5055977
false
false