Remote-processing BASIC for the CX-10 Modbus Uživatelský manuál Strana 36

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 84
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 35
BASIC PROGRAMMING GUIDE
2-27
INT
Syntax: INT(
expr
)
Function: Returns an integer portion of
expr
Mode: Command, run
Use: PRINT INT(PI)
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)
Zobrazit stránku 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 83 84

Komentáře k této Příručce

Žádné komentáře