
PT-Basic Programming Manual Ver. 1.00 16/143
To return the largest integer that is less than or equal to the
giver numeric expression.
A% = INT(N%) or A% = INT(N!)
A% = INT(9.86)
PRINT A%
B% = INT(-5.68)
PRINT B%
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.
To insert explanatory remarks in a program.
REM This is function
' This is BASIC program
remark may be any sequence of characters. BASIC
interpreter will ignore whatever follows the REM or „ until
end of the line‟.
To set the precision of the decimal points for printing real
number expression.
A! = 3.141592654
SET_PRECISION(6)
PRINT "A = ", A! ' A = 3.141593
N% is a numeric expression in the rang of 0 to 6.
The precision default setting is two digits.
Comentários a estes Manuais