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

Description

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

Syntax

realInstance.Dec(real decvalue)

Arguments

ClassNameDescription
realdecvalueDecrement value.

Return value

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

Sample code

real caller = 5.0;

real newInstance = caller.Dec(3.0);

// newInstance == 5.0 / caller == 2.0

Notes

This method is added in Ver 1.1.0.0.

Links for reference

None

Copyright © Rice All rights reserved.