Number.valueOfLong()
Signature
int valueOfLong (long l)
Description
Returns the value of the long passed in (l) as an int.
The high order bits are simply truncated which can result in sign reversal.
Parameters
Name | Type | Description |
l | long | A long that will be returned as an int. |
Returns
Type | Description |
int | The value of the long passed in (l ) as an int. |
Cautions
The high order bits are simply truncated which can result in sign reversal.
Example
Number result = Number.valueOfLong (345L);
Result is: result contains: 345