Remote-processing CAMBASIC Bedienungsanleitung Seite 99

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 208
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 98
Commands - 66
INT
Numeric Fun ction
SYNTAX: a = INT(b)
PURPOSE: To return an integer that is equal to or less tha n the argument.
REMARK S: 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 r ounding and emulates the C INT function found in other BASICs.
ERROR: none
Seitenansicht 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 207 208

Kommentare zu diesen Handbüchern

Keine Kommentare