float function ( char [ ] arg0 ) { long loc0 = convertHexFloatingPointLiteralToBits ( arg0 ) ; return Float . intBitsToFloat ( ( int ) loc0 ) ; }
returns the float value corresponding to the given hexadecimal floating-point single precision literal . the literal must be syntactially correct , and must be a float literal end in a ` f ' or ` f ' . it must not include either leading or trailing whitespace or a sign . this method returns the same answer as float.parsefloat new string source does in jdk 1.5 , except that this method returns floal.nan if it would underflow to 0 parsefloat just returns 0 . the method handles all the tricky cases , including fraction rounding to 24 bits and gradual underflow . concode_field_sep int SINGLE_PRECISION concode_elem_sep int MAX_DOUBLE_EXPONENT concode_elem_sep int MIN_NORMALIZED_SINGLE_EXPONENT concode_elem_sep int MIN_NORMALIZED_DOUBLE_EXPONENT concode_elem_sep int MIN_UNNORMALIZED_DOUBLE_EXPONENT concode_elem_sep int DOUBLE_FRACTION_WIDTH concode_elem_sep int SINGLE_FRACTION_WIDTH concode_elem_sep int DOUBLE_EXPONENT_SHIFT concode_elem_sep int MIN_UNNORMALIZED_SINGLE_EXPONENT concode_elem_sep int SINGLE_EXPONENT_BIAS concode_elem_sep int DOUBLE_EXPONENT_BIAS concode_elem_sep int DOUBLE_PRECISION concode_elem_sep int MAX_SINGLE_EXPONENT concode_elem_sep int SINGLE_EXPONENT_SHIFT concode_field_sep long convertHexFloatingPointLiteralToBits concode_elem_sep double valueOfHexDoubleLiteral