Remote Processing Coorporation RPC-320 Spezifikationen Seite 90

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 186
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 89
Commands - 60
INT
Numeric Function
SYNTAX: a = INT(b)
PURPOSE: To return the largest integer that is equal to, or less than the argument.
REMARKS: The integer portion is stored in variable “a” as a floating point number.
RELATED: MOD, "\" integer divide
EXAMPLE: PRINT INT(45.67)
45
PRINT INT(–15.02)
–16
To produce true rounding to the closest whole number, use the following syntax:
A=INT(B+0.5)
Adding 0.5 provides the true rounding and emulates the CINT function found in other BASICs.
ERROR: none
Seitenansicht 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 185 186

Kommentare zu diesen Handbüchern

Keine Kommentare