public class UInt extends AbstractUnsignedInt implements ValueType:
Represents a 32-bit unsigned integer.
@example `klyn value = UInt(42) assert value >= UInt.MIN_VALUE assert value <= UInt.MAX_VALUE
| Modifier and Type | Member | Description |
|---|---|---|
| public static const | MAX_VALUEMAX_VALUE as UInt = 4_294_967_295u |
The greatest value representable by an UInt. |
| public static const | MIN_VALUEMIN_VALUE as UInt = 0u |
The smallest value representable by an UInt. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native | UIntUInt() |
Builds the neutral UInt value (`0u`). |
| public native | UInt | Builds a UInt from a Boolean value (`false` = 0, `true` = 1). |
| public native | UInt | Builds a UInt from a character code point. |
| public native | UInt | Builds a UInt from a Double value. |
| public native | UInt | Builds a UInt from a Float value. |
| public native | UInt | Builds a UInt from an Int value. |
| public native | UInt | Builds a UInt from a Long value. |
| public native | UIntUInt(value: String) throws BadValueException |
Builds a UInt from a textual representation. |
| public native | UInt | Builds a UInt from a UInt value. |
| public native | UInt | Builds a UInt from an ULong value. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native override | toStringtoString() as String |
Converts this unsigned integer to its decimal textual representation. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native static | operator!=( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether two UInt values are different. |
| public native static | operator%( readonly a as UInt, readonly b as UInt ) as UInt | Computes the remainder of one UInt value divided by another. |
| public native static | operator%=( readonly a as UInt, readonly b as UInt ) as Void | Replaces `a` with the remainder of `a` divided by `b`. |
| public native static | operator*( readonly a as UInt, readonly b as UInt ) as UInt | Multiplies two UInt values. |
| public native static | operator**( readonly value as UInt, readonly power as UInt ) as UInt | Raises a UInt value to a power. |
| public native static | operator**=( readonly value as UInt, readonly power as UInt ) as Void | Replaces `value` with `value ** power`. |
| public native static | operator*=( readonly a as UInt, readonly b as UInt ) as Void | Multiplies `a` by `b` in place. |
| public native static | operator+( readonly a as UInt, readonly b as UInt ) as UInt | Adds two UInt values. |
| public native static | operator+=( readonly a as UInt, readonly b as UInt ) as Void | Adds `b` to `a` in place. |
| public native static | operator-( readonly a as UInt, readonly b as UInt ) as UInt | Subtracts one UInt value from another. |
| public native static | operator-=( readonly a as UInt, readonly b as UInt ) as Void | Subtracts `b` from `a` in place. |
| public native static | operator/( readonly a as UInt, readonly b as UInt ) as Double | Divides one UInt value by another. |
| public native static | operator//( readonly a as UInt, readonly b as UInt ) as UInt | Performs integer division on two UInt values. |
| public native static | operator//=( readonly a as UInt, readonly b as UInt ) as Void | Replaces `a` with the integer division of `a` by `b`. |
| public native static | operator<( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether `a` is strictly lower than `b`. |
| public native static | operator<=( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether `a` is lower than or equal to `b`. |
| public native static | operator==( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether two UInt values are equal. |
| public native static | operator>( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether `a` is strictly greater than `b`. |
| public native static | operator>=( readonly a as UInt, readonly b as UInt ) as Boolean | Tests whether `a` is greater than or equal to `b`. |