long class : Dec(long) method
Description
After returning a new instance with the current value, decrement the value of the caller instance by the argument.
Syntax
longInstance.Dec(long decvalue)
Arguments
Class | Name | Description |
long | decvalue | Decrement value. |
Return value
Class | Description |
long | A new instance with the same value as the caller instance. |
Sample code
long caller = 5L;
long newInstance = caller.Dec(3L);
// newInstance == 5 / caller == 2
Notes
An exception is raised if the instance value exceeds the minimum of long.
Links for reference
None