Integer32 Summary The wrapper class for the int primitive type. Description The System.Integer32 class represents 32-bit signed integers. The System.Integer32 class is the wrapper class for the int primitive type. The range for 32-bit signed integers is [ -2147483648, 2147483647 ] (inclusive). Examples Instantiation 123import System; System.Integer32 x = new System.Integer32(100); Auto-boxing 123import System; System.Integer32 x = 100; Primitives Only 12int x = 1;int y = 2; Methods compareCompares the Integer32 object to another Integer32 object. fromStringConverts a string to an int value. fromStringOrConverts a string to its equivalent int value or the provided default value if the conversion fails. fromStringOrThrowConverts a string to a valid int value or throws an exception if the value cannot be converted. Integer32 (Constructor)Constructs a System.Integer32 object. isEvenChecks if the number is an even number. isOddChecks if the number is an odd number. MAX_VALUERepresents the maximum value for the int type. MIN_VALUERepresents the minimum value for the int 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 int 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 int value to an equivalent string value. valueOfReturns the primitive int value wrapped by the System.Integer32 object. Share HTML | BBCode | Direct Link