# Funzioni numeriche generiche

Nelle seguenti funzioni numeriche generiche gli argomenti sono espressioni, dove x può essere interpretato come un numero reale valutato. Tutte le funzioni possono essere utilizzate sia negli script di caricamento che nelle espressioni grafiche.

Utilizzare l'elenco a discesa su ciascuna funzione per visualizzare una breve descrizione e la sintassi di ciascuna di esse. Per ulteriori informazioni, fare clic sul nome della funzione nella descrizione della sintassi.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### bitcount

BitCount() consente di trovare quanti bit nell'equivalente binario di un numero sono impostati su 1. Ossia, la funzione restituisce il numero di bit impostati in integer\_number, dove integer\_number viene interpretato come numero intero a 32 bit con segno.

[**bitcount**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/bitcount.htm)(integer\_number)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### div

Div() restituisce la parte intera della divisione aritmetica del primo argomento per il secondo argomento. Entrambi i parametri vengono interpretati come numeri reali, ossia, non devono essere numeri interi.

[**div**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/div.htm)(integer\_number1, integer\_number2)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fabs

Fabs() restituisce il valore assoluto di x. Il risultato è un numero positivo.

[**fabs**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fabs.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fact

Fact() restituisce il fattoriale di un numero intero positivo x.

[**fact**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fact.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### frac

Frac() restituisce la frazione a destra del punto decimale di x, dove x è un numero reale.

[**frac**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/frac.htm)(x)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### sign

Sign() restituisce 1, 0 o -1 a seconda che x sia un numero positivo, 0 o un numero negativo.

[**sign**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/sign.htm)(x)

## Funzioni di combinazione e permutazione

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### combin

Combin() restituisce il numero di combinazioni di elementi q che può essere scelto da un gruppo di voci p. Come rappresentato dalla formula: `Combin(p,q) = p! / q!(p-q)!` L'ordine con cui vengono selezionate le voci non è significativo.

[**combin**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/combin.htm)(p, q)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### permut

Permut() restituisce il numero di permutazioni di elementi q che può essere selezionato da una serie di voci p. Come rappresentato dalla formula: `Permut(p,q) = (p)! / (p - q)!` L'ordine con cui vengono selezionate le voci è significativo.

[**permut**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/permut.htm)(p, q)

## Funzioni modulo

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### fmod

fmod() è una funzione di modulo che restituisce la parte rimanente della divisione del primo argomento (il dividendo) per il secondo argomento (il divisore). Il risultato è un numero reale. Entrambi gli argomenti vengono interpretati come numeri reali, ossia, non devono essere numeri interi.

[**fmod**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/fmod.htm)(a, b)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### mod

Mod() è una funzione di modulo che restituisce la parte restante non negativa di una divisione di numero intero. Il primo argomento è il dividendo, il secondo argomento è il divisore ed entrambi gli argomenti devono essere valori interi.

[**mod**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/mod.htm)(integer\_number1, integer\_number2)

## Funzioni di parità

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### even

Even() restituisce True (-1), se integer\_number è un numero intero pari o zero. Restituisce False (0), se integer\_number è un numero intero dispari e NULL se integer\_number non è un numero intero.

[**even**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/even.htm)(integer\_number)

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### odd

Odd() restituisce True (-1), se integer\_number è un numero intero dispari o zero. Restituisce False (0), se integer\_number è un numero intero pari e NULL se integer\_number non è un numero intero.

[**odd**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/odd.htm)(integer\_number)

## Funzioni di arrotondamento

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### ceil

Ceil() arrotonda x per eccesso al multiplo più vicino di step [+ offset]. Il valore predefinito di offset è 0.

[**ceil**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/ceil.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### floor

Floor() arrotonda x per difetto al multiplo più vicino a step [+ offset]. Il valore predefinito di offset è 0.

[**floor**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/floor.htm)(x[, step[, offset]])

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/general-numeric-functions-charts.htm)

#### round

Round() restituisce il risultato dell'arrotondamento di x per eccesso o per difetto al multiplo più vicino di step [+ offset]. Il valore predefinito di offset è 0.

[**round**](https://help.qlik.com/it-IT/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/round.htm)( x [ , step [ , offset ]])