u63 class

63-bit Unsigned Integer

0 to 9223372036854775807

The u63 type is contagious. Most operations on u63 will return u63 values

Inheritance

Constructors

u63(int value)
63-bit Unsigned Integer
u63.fromEnvironment(String name, {int defaultValue = 0})
63-bit Unsigned Integer
factory
u63.integer(integer val)
63-bit Unsigned Integer
u63.parse(String source, {int? radix})
63-bit Unsigned Integer

Properties

hashCode int
The hash code for this object.
getter/setter pairinherited
isEven bool
Returns true if and only if this integer is even.
no setterinherited
isOdd bool
Returns true if and only if this integer is odd.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sign int
Returns the sign of this integer.
no setterinherited
value int
Value of the integer
no setterinherited

Methods

ceilToDouble() double
Returns this.toDouble().
inherited
compareTo(integer other) int
Compares this object to another object.
inherited
floorToDouble() double
Returns this.toDouble().
inherited
gcd(integer other) u63
Returns the greatest common divisor of this integer and other.
override
modInverse(unsigned modulus) u63
Returns the modular multiplicative inverse of this integer modulo modulus.
override
modPow(unsigned exponent, unsigned modulus) u63
Returns this integer to the power of exponent modulo modulus.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remainder(dynamic other) u63
The remainder of the truncating division of this by other.
override
roundToDouble() double
Returns this.toDouble().
inherited
toRadixString(int radix) String
Converts this to a string representation in the given radix.
inherited
toString() String
Returns a string representation of this integer.
inherited
truncateToDouble() double
Returns this.toDouble().
inherited

Operators

operator %(dynamic other) u63
Euclidean modulo of this number by other.
override
operator &(dynamic other) u63
Bit-wise and operator.
override
operator *(dynamic other) u63
Multiplies this integer by other.
override
operator +(dynamic other) u63
Adds other to this number.
override
operator -(dynamic other) u63
Subtracts other from this number.
override
operator /(dynamic other) double
Divides this number by other.
inherited
operator <(dynamic other) bool
Whether this number is numerically smaller than other.
inherited
operator <<(dynamic other) u63
Shift the bits of this integer to the left by shiftAmount.
override
operator <=(dynamic other) bool
Whether this number is numerically smaller than or equal to other.
inherited
operator ==(Object other) bool
Test whether this value is numerically equal to other.
inherited
operator >(dynamic other) bool
Whether this number is numerically greater than other.
inherited
operator >=(dynamic other) bool
Whether this number is numerically greater than or equal to other.
inherited
operator >>(dynamic other) u63
Shift the bits of this integer to the right by shiftAmount.
override
operator >>>(dynamic other) u63
Bitwise unsigned right shift by shiftAmount bits.
override
operator ^(dynamic other) u63
Bit-wise exclusive-or operator.
override
operator unary-() i64
Return the negative value of this integer.
override
operator |(dynamic other) u63
Bit-wise or operator.
override
operator ~() i64
The bit-wise negate operator.
override
operator ~/(dynamic other) u63
Truncating division operator.
override

Static Methods

tryParse(String source) u63?
Parse source as a, signed integer literal.