Argox PA-20 Basic Programming Manual Manuel d'utilisateur Page 17

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 143
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 16
PT-Basic Programming Manual Ver. 1.00 16/143
INT
Purpose
To return the largest integer that is less than or equal to the
giver numeric expression.
Syntax
A% = INT(N%) or A% = INT(N!)
Example
A% = INT(9.86)
PRINT A%
B% = INT(-5.68)
PRINT B%
Description
A% is an integer variable to be assigned to the result.
N% or N! is a numeric expression,it can be an integer or a
real number.
REM
Purpose
To insert explanatory remarks in a program.
Syntax
REM remark or 'remark
Example
REM This is function
' This is BASIC program
Description
remark may be any sequence of characters. BASIC
interpreter will ignore whatever follows the REM or „ until
end of the line.
SET_PRECISION
Purpose
To set the precision of the decimal points for printing real
number expression.
Syntax
SET_PRECISION(N%)
Example
A! = 3.141592654
SET_PRECISION(6)
PRINT "A = ", A! ' A = 3.141593
Description
N% is a numeric expression in the rang of 0 to 6.
The precision default setting is two digits.
Vue de la page 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 142 143

Commentaires sur ces manuels

Pas de commentaire