real class : Inc(long) method
Description
After returning a new instance with the current value, increment the value of the caller instance by the argument.
Syntax
realInstance.Inc(long incvalue)
Arguments
Class | Name | Description |
long | incvalue | Increment value. |
Return value
Class | Description |
real | A new instance with the same value as the caller instance. |
Sample code
real caller = 5.0;
real newInstance = caller.Inc(3L);
// newInstance == 5.0 / caller == 8.0
Notes
This method is added in Ver 1.1.0.0.
Links for reference
None