StringBuffer function ( final double arg0 , final NumberFormat arg1 , final StringBuffer arg2 , final FieldPosition arg3 ) { if ( Double . isNaN ( arg0 ) || Double . isInfinite ( arg0 ) ) { arg2 . append ( '(' ) ; arg2 . append ( arg0 ) ; arg2 . append ( ')' ) ; } else { arg1 . arg1 ( arg0 , arg2 , arg3 ) ; } return arg2 ; }
formats a double value to produce a string . in general , the value is formatted using the formatting rules of format . there are three exceptions to this : nan is formatted as ' nan ' positive infinity is formatted as ' infinity ' negative infinity is formatted as ' - infinity ' concode_field_sep PlaceHolder placeHolder concode_field_sep char parseNextCharacter concode_elem_sep boolean parseFixedstring concode_elem_sep Number parseNumber concode_elem_sep Number parseNumber concode_elem_sep void parseAndIgnoreWhitespace concode_elem_sep NumberFormat getDefaultNumberFormat concode_elem_sep NumberFormat getDefaultNumberFormat