Vérifie si la valeur d'une variable ou d'une expression n'a pas de partie décimale.
IsInt ( variable )
variable | La variable/expression à vérifier. |
Succès: | Retourne 1 - Pas de partie décimale |
Échec: | Retourne 0 - Une partie décimale existe |
IsArray, IsBinary, IsBool, IsFloat, IsHWnd, IsNumber, IsPtr, IsString, StringIsInt, VarGetType
#include <MsgBoxConstants.au3> Example() Func Example() Local $bIsInt1 = IsInt(-12345) ; Retourne 1 Local $bIsInt2 = IsInt(3.0000) ; Retourne 1 Local $bIsInt3 = IsInt("5432") ; Retourne 0 car la valeur est une chaîne. Local $bIsInt4 = IsInt(7.5 - 4.5) ; Retourne 1 car il teste l'entier 3 MsgBox($MB_SYSTEMMODAL, "", "IsInt: " & @CRLF & _ $bIsInt1 & @CRLF & $bIsInt2 & @CRLF & $bIsInt3 & @CRLF & $bIsInt4) EndFunc ;==>Example