int toPrimitiveInteger(Object objectData) int toPrimitiveInteger(float floatData) int toPrimitiveInteger(double doubleData)
Returns a primitive int value.
DtpIncompatibleFormatException - If the source data type cannot be converted to integer.
This method can only handle String, Integer, Float, and Double objects; and there will be some data loss when the input type is Fload or Double.
The limitation of this method is the same as the limitation of the int type in Java.
The largest positive hexidecimal and octal literals of type int are 0xfffffff and 017777777777, respectively, which equal 2147483647 (231-1). The most negative hexadecimal and octal literals of type int are 0x80000000and 020000000000, respectively, each of which represents the decimal value -2147483648 (-231). The hexadecimal and octal literals 0xfffffff and 037777777777, respectively, represent the decimal value -1.
int myInt = DtpDataConversion.toPrimitiveInt(myObject);
getType(), isOKToConvert(), toInteger()
For more information, see the Java Language Specification.