An integer number.
The default implementation of int
is 64-bit two's complement integers
with operations that wrap to that range on overflow.
Note: When compiling to JavaScript, integers are restricted to values that can be represented exactly by double-precision floating point values. The available integer values include all integers between -2^53 and 2^53, and some integers with larger magnitude. That includes some integers larger than 2^63. The behavior of the operators and methods in the int class therefore sometimes differs between the Dart VM and Dart code compiled to JavaScript. For example, the bitwise operators truncate their operands to 32-bit integers when compiled to JavaScript.
Classes cannot extend, implement, or mix in int
.
name
. [...]
this
.
this.toDouble()
.
this
.
this.toDouble()
.
other
. [...]
modulus
. [...]
exponent
modulo modulus
. [...]
this
.
this.toDouble()
.
radix
. [...]
width
bits of this integer, extending the
highest retained bit to the sign. This is the same as truncating the value
to fit in width
bits using an signed 2-s complement representation. The
returned value has the same bit value in all positions higher than width
. [...]
width
bits of this integer as a
non-negative number (i.e. unsigned representation). The returned value has
zeros in all bit positions higher than width
. [...]
this
.
this.toDouble()
.
lowerLimit
-upperLimit
. [...]
other
. [...]
this
by other
. [...]
this
. [...]
this
. [...]
this
to a double and returns a string representation with
exactly precision
significant digits. [...]
shiftAmount
. [...]
shiftAmount
. [...]