Aide:StringIsFloat.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
StringIsFloat

###Description###
Checks if a string is a floating point number.

###Syntax###
StringIsFloat ( "string" )


###Parameters###
@@ParamTable@@
string
	The string or expression to check.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns 1.
Failure:	Returns 0 if not floating point format.
@@End@@


###Remarks###
A string is a float if it contains at least one decimal digit and exactly one period; the only other character allowed is an optional plus or minus at the beginning.  (StringIsFloat does not accept a comma character as the decimal point even if the computer Locale settings use that symbol.)  If parameter is not a string, its value is converted to a string.  See examples.

###Related###
StringIsInt, IsFloat


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
StringIsFloat

###Description###
Vérifie si une chaîne est un nombre à virgule flottante. 


###Syntax###
StringIsFloat ( "string" )


###Parameters###
@@ParamTable@@
string
	La chaîne ou l'expression à vérifier.
@@End@@


###ReturnValue###
Succès:	Retourne 1.
Échec:	Retourne 0 si ce n'est pas nombre à virgule flottante.


###Remarks###
Une chaîne est un nombre flottant si elle contient au moins un chiffre décimal et un seul point, les seuls autres caractères permis sont un plus (+) ou un moins (-) optionnel au début. (StringIsFloat n'accepte pas le caractère virgule comme séparateur décimal, même si les paramètres régionaux de l'ordinateur utilisent ce symbole). Si le paramètre n'est pas une chaîne, sa valeur est convertie en une chaîne. Voir les exemples.


###Related###
<a href="StringIsInt.htm">StringIsInt</a>, <a href="IsFloat.htm">IsFloat</a>


###Example###
@@IncludeExample@@


Traducteur : Strofe

Contributeurs (pour les modifications avant le Wiki) : Tlem