UInteger8 Summary The wrapper class for the byte primitive type. Description The System.UInteger8 class represents 8-bit unsigned integers. The System.UInteger8 class is the wrapper class for the byte primitive type. The range for 8-bit unsigned integers is [ 0, 255 ] (inclusive). Examples Instantiation 123import System; System.UInteger8 x = new System.UInteger8(100); Auto-boxing 123import System; System.UInteger8 x = 100; Primitives Only 12byte x = 1;byte y = 2; Methods compareCompares the UInteger8 object to another UInteger8 object. fromStringConverts a string to a byte value. fromStringOrConverts a string to its equivalent byte value or the provided default value if the conversion fails. fromStringOrThrowConverts a string to a valid byte value or throws an exception if the value cannot be converted. isEvenChecks if the number is an even number. isOddChecks if the number is an odd number. MAX_VALUERepresents the maximum value for the byte type. MIN_VALUERepresents the minimum value for the byte type. toBaseReturns a string representation of the integer value using the specified base. toBinaryReturns the binary (base 2) value of the integer. toDecimalReturns the decimal (base 10) value of the integer. toExponentialFormats the integer value using exponential notation. toExternalConverts the byte value to its equivalent external value. toFixedFormats the integer value using fixed-point notation. toHexReturns the hexadecimal (base 16) value of the integer. toPrecisionFormats the integer value as a string to the given precision. toStringConverts the byte value to an equivalent string value. UInteger8 (Constructor)Constructs a System.UInteger8 object. valueOfReturns the primitive byte value wrapped by the System.UInteger8 object. Share HTML | BBCode | Direct Link