Int()
Syntaxe
Resultat = Int(Nombre.f(d))Description
Renvoie la partie entière d'un nombre flottant.
Arguments
Nombre.f ou Nombre.d Le nombre à virgule flottante (float ou double)
Valeur de retour
Renvoie la partie entière sans arrondi (par troncature à l'unité).
Remarques
Cette fonction renvoie un integer.
Pour obtenir un quad, utiliser IntQ().
Pour obtenir un arrondi, utiliser Round().
Exemple
Debug Int(10.565) ; Affiche '10' Debug Int(10.1) ; Affiche '10' Debug Int(10.9) ; Affiche '10' Debug Int(-10.565) ; Affiche '-10' Debug Int(-10.1) ; Affiche '-10' Debug Int(-10.9) ; Affiche '-10'
Voir aussi
IntQ(), Round()
OS Supportés
Tous