Fraction fraction = null; if ( isPrecise( ) ) { fraction = FractionApproximator.getExactFraction( dValue ); } else if ( getNumerator( ) > 0 ) { fraction = FractionApproximator.getFractionWithNumerator( dValue, (int) getNumerator( ) ); }  else { fraction = FractionApproximator.getFractionWithMaxDigits( dValue, getFractionDigits( ) ); }   final StringBuffer sb = new StringBuffer( ); if ( getPrefix( ) != null ) { sb.append( getPrefix( ) ); } sb.append( fraction.toString( getDelimiter( ) ) ); if ( getSuffix( ) != null ) { sb.append( getSuffix( ) ); } return sb.toString( );
return format( dValue, ULocale.forLocale( lo ) );
	public String format( double dValue, Locale lo )	{		// Convert the decimal value to the fraction		Fraction fraction = null;		if ( isPrecise( ) )		{			fraction = FractionApproximator.getExactFraction( dValue );		}		else if ( getNumerator( ) > 0 )		{			fraction = FractionApproximator.getFractionWithNumerator( dValue,					(int) getNumerator( ) );		}		// Using max digits for denominator to calculate		else		{			fraction = FractionApproximator.getFractionWithMaxDigits( dValue,					getFractionDigits( ) );		}		// Generate the formatted string		final StringBuffer sb = new StringBuffer( );		if ( getPrefix( ) != null )		{			sb.append( getPrefix( ) );		}		sb.append( fraction.toString( getDelimiter( ) ) );		if ( getSuffix( ) != null )		{			sb.append( getSuffix( ) );		}		return sb.toString( );	}