DEC

DEC Variable

Decrements a variable.

Variable can be any target of an assignment, but must be numeric.

It is the exact equivalent of:

Variable = Variable - 1

or

Variable -= 1

Examples

Dim X As Integer
= 7
Dec X
Print X
6

Dim A As New Float[3, 3]
Dim X, Y As Integer

= 2
= 1

A[X, Y] = Pi
Dec A[X, Y]
Print A[X, Y]
2.14159265359

See also