Converts an object or primitive data type to the primitive float data type.
Syntax
float toPrimitiveFloat(Object objectData) float toPrimitiveFloat(int integerData) float toPrimitiveFloat(double doubleData)
Parameters
Return values
Returns a primitive float value.
Exceptions
DtpIncompatibleFormatException - If the source data type cannot be converted to float.
Examples
float myFloat = DtpDataConversion.toPrimitiveFloat(myInteger);
See also