public Number getFloat ( int field ) throws MPXJException { try { Number result ; if ( ( field < m_fields . length ) && ( m_fields [ field ] . length ( ) != 0 ) ) { result = m_formats . getDecimalFormat ( ) . parse ( m_fields [ field ] ) ; } else { result = null ; } return ( result ) ; } catch ( ParseException ex ) { throw new MPXJException ( "Failed to parse float" , ex ) ; } }
Accessor method used to retrieve a Float object representing the contents of an individual field . If the field does not exist in the record null is returned .