Remote-processing BASIC 52 Instrukcja Użytkownika Strona 68

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 163
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 67
RPBASIC-52 PROGRAMMING GUIDE
2-49
INT
Syntax: INT(expr)
Function: Returns an integer portion of expr
Mode: Command, run
Use: PRINT INT(PI)
Cards: All
DESCRIPTION
The integer portion is stored as a floating point number.
RELATED none
ERRORS none
EXAMPLE
print int(45.67)
45
print int(-16.9999)
-16
To produce true rounding to the closest whole number, use the following formula:
A = INT(B+0.5)
Przeglądanie stron 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 162 163

Komentarze do niniejszej Instrukcji

Brak uwag