UBI EasyCoder 201 IIE Manuel d'instructions Page 272

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 332
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 271
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7270
Chapter 2 Program Instructions
VAL
Field of Application
Function returning the numeric representation of a string expression.
Syntax VAL(<sexp>)
<sexp> is the string expression from which the numeric representation
will be returned.
Remarks
VAL is the complementary function for STR$.
VAL ignores space characters from the argument string to determine
the result.
If the rst character in the string expression is anything else but a digit, a plus
sign, or a minus sign, the VAL function returns the value 0.
Example
In this example, the values of the string variables A$ and B$ are read and
assigned to the numeric variables A% and B%:
10 A$="123, MAIN STREET"
20 A%=VAL(A$)
30 B$="PHONE 123456"
40 B%=VAL(B$)
50 PRINT A$
60 PRINT A%
70 PRINT B$
80 PRINT B%
RUN
yields:
123, MAIN STREET
123
PHONE 123456
0
Vue de la page 271
1 2 ... 267 268 269 270 271 272 273 274 275 276 277 ... 331 332

Commentaires sur ces manuels

Pas de commentaire