ObjIntNullExt extension
Properties
- bitLength → int?
-
Available on Obj<
Returns the minimum number of bits required to store this integer.int?> , provided by the ObjIntNullExt extensionno setter - isEven → bool?
-
Available on Obj<
Returns true if and only if this integer is even.int?> , provided by the ObjIntNullExt extensionno setter - isOdd → bool?
-
Available on Obj<
Returns true if and only if this integer is odd.int?> , provided by the ObjIntNullExt extensionno setter - sign → int?
-
Available on Obj<
Returns the sign of this integer.int?> , provided by the ObjIntNullExt extensionno setter
Methods
-
abs(
) → int? -
Available on Obj<
Returns the absolute value of this integer.int?> , provided by the ObjIntNullExt extension -
ceil(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
floor(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
floorToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
gcd(
int other) → int? -
Available on Obj<
Returns the greatest common divisor of this integer andint?> , provided by the ObjIntNullExt extensionother
. -
modInverse(
int modulus) → int? -
Available on Obj<
Returns the modular multiplicative inverse of this integer moduloint?> , provided by the ObjIntNullExt extensionmodulus
. -
modPow(
int exponent, int modulus) → int? -
Available on Obj<
Returns this integer to the power ofint?> , provided by the ObjIntNullExt extensionexponent
modulomodulus
. -
round(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
roundToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
. -
toRadixString(
int radix) → String? -
Available on Obj<
Convertsint?> , provided by the ObjIntNullExt extensionthis
to a string representation in the givenradix
. -
toSigned(
int width) → int? -
Available on Obj<
Returns the least significantint?> , provided by the ObjIntNullExt extensionwidth
bits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidth
bits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth
. -
toUnsigned(
int width) → int? -
Available on Obj<
Returns the least significantint?> , provided by the ObjIntNullExt extensionwidth
bits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth
. -
truncate(
) → int? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Obj<
Returnsint?> , provided by the ObjIntNullExt extensionthis.toDouble()
.