Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  long  >  Dec()
long class : Dec() method

Description

After returning a new instance with the current value, decrement the value of the caller instance by one.

Syntax

longInstance.Dec()

Arguments

None

Return value

ClassDescription
longA new instance with the same value as the caller instance.

Sample code

long caller = 5L;

long newInstance = caller.Dec();

// newInstance == 5 / caller == 4

Notes

This method is added in Ver 1.1.0.0.

Links for reference

None

Copyright © Rice All rights reserved.