# Fonctions mathématiques

Cette section décrit les fonctions des constantes mathématiques et des valeurs booléennes. Ces fonctions sont dépourvues de paramètres, mais les parenthèses sont tout de même requises.

Les fonctions s'utilisent toutes aussi bien dans le script de chargement que dans les expressions de graphique.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)

#### e

La fonction renvoie la base des logarithmes népériens, e.( 2.71828...).

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)e( )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)

#### false

La fonction renvoie une valeur double avec la valeur textuelle 'False' et la valeur numérique 0, qui peuvent être utilisées comme un faux logique dans les expressions.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)false( )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)

#### pi

La fonction renvoie la valeur de π (3.14159...).

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)pi( )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)

#### rand

La fonction renvoie un nombre aléatoire compris entre 0 et 1. Vous pouvez l'utiliser pour créer des échantillons de données.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)rand( )

Exemple :

Cet exemple de script crée une table de 1000 enregistrements contenant des caractères en majuscules sélectionnés de manière aléatoire, c.-à-d., des caractères compris dans la plage 65 à 91 (65+26).

```
Load
     Chr( Floor(rand() * 26) + 65) as UCaseChar,
     RecNo() as ID
     Autogenerate 1000;
```

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)

#### true

La fonction renvoie une valeur double avec la valeur textuelle 'True' et la valeur numérique -1, qui peuvent être utilisées comme un vrai logique dans les expressions.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/MathConstantsAndParamFreeFunctions/mathematical-functions.htm)true( )