goog.math.Integer |
bits
: Array.<number>
Array containing the bits of the number.
|
sign
: number
The sign of the number: -1 for negative and 0 positive.
|
Returns the sum of this and the given Integer.
Arguments:
Returns: !goog.math.Integer
The Integer result.
|
code » | ||
Returns the bitwise-AND of this Integer and the given one.
Arguments:
Returns: !goog.math.Integer
The bitwise-AND of this and the other.
|
code » | ||
Compares this Integer with the given one.
Arguments:
Returns: number
0 if they are the same, 1 if the this is greater, and -1
if the given one is greater.
|
code » | ||
Returns this Integer divided by the given one.
Arguments:
Returns: !goog.math.Integer
This value divided by the given one.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer equals the other.
|
code » | ||
Returns the index-th 32-bit (signed) piece of the Integer according to
little-endian order (i.e., index 0 contains the smallest bits).
|
code » | ||
Returns the index-th 32-bit piece as an unsigned number.
|
code » | ||
No description.
Returns: number
The sign bit of this number, -1 or 0.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer is greater than the other.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer is greater than or equal to the other.
|
code » | ||
No description.
Returns: boolean
Whether this value is negative.
|
code » | ||
No description.
Returns: boolean
Whether this value is odd.
|
code » | ||
No description.
Returns: boolean
Whether this value is zero.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer is less than the other.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer is less than or equal to the other.
|
code » | ||
Returns this Integer modulo the given one.
Arguments:
Returns: !goog.math.Integer
This value modulo the given one.
|
code » | ||
Returns the product of this and the given Integer.
Arguments:
Returns: !goog.math.Integer
The product of this and the other.
|
code » | ||
No description.
Returns: !goog.math.Integer
The negation of this value.
|
code » | ||
No description.
Returns: !goog.math.Integer
The bitwise-NOT of this value.
|
code » | ||
No description.
Arguments:
Returns: boolean
Whether this Integer does not equal the other.
|
code » | ||
Returns the bitwise-OR of this Integer and the given one.
Arguments:
Returns: !goog.math.Integer
The bitwise-OR of this and the other.
|
code » | ||
Returns this value with bits shifted to the left by the given amount.
Arguments:
Returns: !goog.math.Integer
This shifted to the left by the given amount.
|
code » | ||
Returns this value with bits shifted to the right by the given amount.
Arguments:
Returns: !goog.math.Integer
This shifted to the right by the given amount.
|
code » | ||
Returns an integer with only the first numBits bits of this value, sign
extended from the final bit.
Arguments:
Returns: !goog.math.Integer
The shorted integer value.
|
code » | ||
Returns the difference of this and the given Integer.
Arguments:
Returns: !goog.math.Integer
The Integer result.
|
code » | ||
Returns the value, assuming it is a 32-bit integer.
Returns: number
The corresponding int value.
|
code » | ||
No description.
Returns: number
The closest floating-point representation to this value.
|
code » | ||
No description.
Arguments:
Returns: string
The textual representation of this value.
|
code » | ||
Returns the bitwise-XOR of this Integer and the given one.
Arguments:
Returns: !goog.math.Integer
The bitwise-XOR of this and the other.
|
code » |
![]()
Carries any overflow from the given index into later entries.
|
code » | |||
Returns a Integer representing the value that comes by concatenating the
given entries, each is assumed to be 32 signed bits, given in little-endian
order (lowest order bits in the lowest index), and sign-extending the highest
order 32-bit value.
Arguments:
Returns: !goog.math.Integer
The corresponding Integer value.
|
code » | |||
Returns an Integer representing the given (32-bit) integer value.
Arguments:
Returns: !goog.math.Integer
The corresponding Integer value.
|
code » | |||
Returns an Integer representing the given value, provided that it is a finite
number. Otherwise, zero is returned.
Arguments:
Returns: !goog.math.Integer
The corresponding Integer value.
|
code » | |||
Returns an Integer representation of the given string, written using the
given radix.
Arguments:
Returns: !goog.math.Integer
The corresponding Integer value.
|
code » |
![]()
A cache of the Integer representations of small integer values.
|
Code » | |
No description.
|
Code » | |
No description.
|
Code » | |
![]()
A number used repeatedly in calculations. This must appear before the first
call to the from* functions below.
|
Code » | |
No description.
|
Code » |