DEC
Root / Documentation / [.]

Decrement a variable.
Syntax
DEC variable# {, decr# }
Input | Description |
---|---|
variable# | The integer or real number variable to modify. |
decr# | The value to use for the increment. Optional. 1, if omitted. |
Examples
'decrement I DEC I
'decrement A by 3.1 DEC A,3.1
Notes
Integer Overflow/Underflow
IfDEC
will cause an integer value to overflow or underflow, the value is first converted to a real number.
'underflow test VAR I%=&h80000000 'minimum int DEC I% ??I% 'now a real
No posts yet (will you be the first?)