# Fonctions numériques générales

Dans ces fonctions numériques générales, les arguments sont des expressions où x doit être interprété comme un nombre réel. Elles s'utilisent toutes aussi bien dans les scripts de chargement que dans les expressions de graphique.

Pour afficher une description succincte et la syntaxe d'une fonction, utilisez le menu déroulant de chaque fonction. Pour plus d'informations, cliquez sur le nom de la fonction dans la description de la syntaxe.

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

#### bitcount

BitCount() permet de déterminer combien de bits sont définis sur 1 dans l'équivalent binaire d'un nombre. En d'autres termes, la fonction renvoie le nombre de bits définis dans integer\_number, où integer\_number est interprété comme un entier 32 bits signé.

[**bitcount**](https://help.qlik.com/fr-FR/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() renvoie la partie entière de la division arithmétique du premier argument par le second. Les deux paramètres sont interprétés comme des nombres réels, c'est-à-dire que ce ne sont pas nécessairement des entiers.

[**div**](https://help.qlik.com/fr-FR/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() renvoie la valeur absolue de x. Le résultat est un nombre positif.

[**fabs**](https://help.qlik.com/fr-FR/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() renvoie la factorielle d'un entier positif x.

[**fact**](https://help.qlik.com/fr-FR/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() renvoie la fraction située à droite de la virgule décimale de x, où x correspond à un nombre réel.

[**frac**](https://help.qlik.com/fr-FR/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() renvoie 1, 0 ou -1 selon que x est un nombre positif, 0 ou un nombre négatif.

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

## Fonctions de combinaison et de permutation

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

#### combin

Combin() renvoie le nombre de combinaisons de q éléments sélectionnables dans un ensemble de p éléments. Comme représenté par la formule : `Combin(p,q) = p! / q!(p-q)!`. L'ordre dans lequel les éléments sont sélectionnés n'a pas d'importance.

[**combin**](https://help.qlik.com/fr-FR/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() renvoie le nombre de permutations de q éléments sélectionnables dans un groupe de p éléments. Comme représenté par la formule : `Permut(p,q) = (p)! / (p - q)!`. L'ordre dans lequel les éléments sont sélectionnés a de l'importance.

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

## Fonctions modulo

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

#### fmod

fmod() est une fonction modulo qui renvoie le reste de la division du premier argument (le dividende) par le second (le diviseur). Le résultat est un nombre réel. Les deux arguments sont interprétés comme des nombres réels, c'est-à-dire que ce ne sont pas nécessairement des entiers.

[**fmod**](https://help.qlik.com/fr-FR/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() est une fonction modulo qui renvoie le reste non négatif d'une division entière. Le premier argument est le dividende, le second le diviseur. Tous deux doivent être des valeurs entières.

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

## Fonctions de parité

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

#### even

Even() renvoie True (-1) si integer\_number est un entier pair ou est égal à zéro. Il renvoie False (0) si integer\_number est un entier impair et NULL si integer\_number n'est pas un entier.

[**even**](https://help.qlik.com/fr-FR/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() renvoie True (-1) si integer\_number est un entier impair ou est égal à zéro. Il renvoie False (0) si integer\_number est un entier pair et NULL si integer\_number n'est pas un entier.

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

## Fonction d'arrondi

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

#### ceil

Ceil() arrondit x au multiple supérieur le plus proche de l'intervalle step [+ offset]. La valeur par défaut de offset est 0.

[**ceil**](https://help.qlik.com/fr-FR/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() arrondit x au multiple inférieur le plus proche de l'intervalle step [+ offset]. La valeur par défaut de offset est 0.

[**floor**](https://help.qlik.com/fr-FR/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() renvoie le résultat de l'arrondissement de x au multiple supérieur ou inférieur le plus proche de step [+ offset]. La valeur par défaut de offset est 0.

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