Bug 153374 Parse method in ReportParamterConverter convert float type to double type
Description: Parse method in ReportParamterConverter convert float type to double type Steps to reproduce: 1. use parse() to convert a string to float type String var1="3.5"; converter.parse( float1,IScalarParameterDefn.TYPE_FLOAT ); Expected result: parse method returns a Float instance Actual result: returned a Double instance despite that I&#12288;defined TYPE_FLOAT
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ReportParameterConverter.java
{
				NumberFormatter nf = new NumberFormatter( locale );
				if ( format != null )
				{
					nf.applyPattern( format );
				}
				
				reportParameterValue = nf.format( ( BigDecimal ) reportParameterObj );
			}
			else if ( reportParameterObj instanceof Boolean )
			{
				reportParameterValue = ( ( Boolean ) reportParameterObj ).toString( );
			}
			else if ( reportParameterObj instanceof Number )
			{
				NumberFormatter nf = new NumberFormatter( locale );
				
				if ( format != null )
				{
					nf.applyPattern( format );
				}
				reportParameterValue = nf.format( ( ( Number ) reportParameterObj ) );
			}
			else
			{
				reportParameterValue = ( reportParameterObj.toString( ) );
			}
		}
		
		return reportParameterValue;