---
title: floor
slug: Web/XPath/Functions/floor
tags:
  - XSLT
  - XSLT_Reference
---
{{ XsltRef() }}

The `floor` function evaluates a decimal number and returns the largest integer less than or equal to the decimal number.

### Syntax

    floor( number )

### Arguments

- `number`
  - : The decimal number to be evaluated.

### Returns

The nearest integer less than or equal to `number`.

### Defined

[XPath 1.0 4.4](https://www.w3.org/TR/xpath#function-floor)

### Gecko support

Supported.
