# Floor - Funzione per script e grafici

Floor() arrotonda per eccesso un numero al multiplo più vicino di step modificato in base al numero di offset .

Confrontarla con la funzione ceil, che arrotonda per eccesso i numeri in input.

Sintassi:

Floor(x[, step[, offset]])

Tipo di dati restituiti: numerico

Argomenti:

Argomenti

| Argomento | Descrizione |
| --- | --- |
| x | Numero di input. |
| step | Incremento intervallo. Il valore predefinito è 1. |
| offset | Definisce la base dell'intervallo della fase. Il valore predefinito è 0. |

Esempi e risultati:

Esempi e risultati

| Esempi | Risultati |
| --- | --- |
| `Floor(2.4)` | Restituisce 2<br><br>In this example, the size of the step is 1 and the base of the step interval is 0.<br><br>The intervals are ...0 &lt;= x &lt;1, 1 &lt;= x &lt; 2, 2&lt;= x &lt;3, 3&lt;= x &lt;4.... |
| `Floor(4.2)` | Restituisce 4 |
| `Floor(3.88 ,0.1)` | Restituisce 3,8<br><br>In questo esempio la dimensione dell'intervallo è 0,1 e la base dell'intervallo è 0.<br><br>Gli intervalli sono ... 3.7 &lt;= x &lt; 3.8, 3.8 &lt;= x &lt; 3.9, 3.9 &lt;= x &lt; 4.0... |
| `Floor(3.88 ,5)` | Restituisce 0 |
| `Floor(1.1 ,1)` | Restituisce 1 |
| `Floor(1.1 ,1,0.5)` | Restituisce 0,5<br><br>In questo esempio, la dimensione della fase è 1 e l'offset è 0,5. Significa che la base dell'intervallo della fase è 0,5 e non 0.<br><br>Gli intervalli sono ...0.5 &lt;= x &lt;1.5, 1.5 &lt;= x &lt; 2.5, 2.5&lt;= x &lt;3.5,... |

## Ulteriori informazioni

* [Frac - Funzione per script e grafici](https://help.qlik.com/it-IT/sense/November2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/frac.htm)
* [Ceil - Funzione per script e grafici](https://help.qlik.com/it-IT/sense/November2025/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNumericFunctions/ceil.htm)