Integer values are "objects" of this class.
Constants | |
| MIN | - integer, minimal value of integer type. |
| MAX | - integer, maximal value of integer type. |
Methods | |
| toFloat |
( ) : float Converts this integer value to float. |
| toInteger |
( ) : int Simply returns value of the integer. |
| toString |
( [radix: int] ) : string
Returns string representation of the integer using one of radix value: 10(default), 8 or 16. |
| toHtmlString |
( [radix: int] ) : string Returns string escaped by html rules. Is an alias of the toString() method here. |
| toUrlString |
( [radix: int] ) : string Returns string escaped by url rules. Is an alias of the toString() method here. |
| valueOf |
() : int
Simply returns value of the integer itself. |
| min |
( ... ) : int Static method - returns minimum value of arguments. E.g. Integer.min(1, 2, 3) will return 1. |
| max |
( ... ) : int Static method - returns maximum value of arguments. E.g. Integer.min(1, 2, 3) will return 1. |
| limit |
( min:int, max:int ) : int This is exactly the following: function Integer.limit(min, max)
{
if( this < min ) return min;
if( this > max ) return max;
return this;
}
|