Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

StringFromReal()

  • Last UpdatedSep 24, 2024
  • 1 minute read

Convertit une valeur réelle en représentation chaîne, soit en nombre en virgule flottante ou en notation exponentielle, et renvoie le résultat.

Catégorie

Chaîne

Syntaxe

ResultatChaine = StringFromReal( unNombre, laPrécision, leType );

Paramètres

unNombre

Converti selon la valeur de laPrécision et leType spécifiés. Tout nombre ou attribut en virgule flottante.

laPrécision

Spécifie le nombre de chiffres après la virgule à afficher. Tout nombre ou attribut entier.

Ecrivez

Une valeur chaîne qui détermine la méthode d'affichage. Les valeurs possibles comprennent :

f = Affichage en notation de nombre en virgule flottante.

e = Affichage en notation exponentielle avec un petit 'e'.

E = Affichage en notation exponentielle avec un grand 'E' suivi du signe + et au moins trois chiffres d'exposant.

Exemples

StringFromReal(263.355, 2,"f"); ' renvoie "263.36";

StringFromReal(263.355, 2,"e"); ' renvoie "2.63e2";

StringFromReal(263.355, 2,"E"); ' renvoie "2.63 E+002";

Voir également

StringASCII()

StringChar()

StringFromIntg()

StringFromTime()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic