IntExtensions extension
- on
Properties
- isEven → bool
-
Available on int, provided by the IntExtensions extension
Whether the int is even.no setter - isOdd → bool
-
Available on int, provided by the IntExtensions extension
Whether the int is odd.no setter
Methods
-
ordinal(
) → String -
Available on int, provided by the IntExtensions extension
Ordinal suffix (e.g.1st,2nd,3rd,11th). -
toBinary(
) → String -
Available on int, provided by the IntExtensions extension
Binary representation (e.g.5.toBinary()->101). -
toHex(
) → String -
Available on int, provided by the IntExtensions extension
Uppercase hexadecimal representation (e.g.255.toHex()->FF). -
toOctal(
) → String -
Available on int, provided by the IntExtensions extension
Octal representation.