asn1s-core/src/main/java/org/asn1s/core/value/CoreValueFactory.java
/**
	 * Create real value from components
	 *
	 * @param mantissa the mantissa value
	 * @param decimal  if true - decimal notation, binary otherwise
	 * @param exponent an integer exponent
	 * @return RealValue
	 */
Create real value from components
@param mantissa the mantissa value
@param decimal  if true - decimal notation, binary otherwise
@param exponent an integer exponent
@return RealValue
Create real value from components @param mantissa the mantissa value @param decimal if true - decimal notation binary otherwise @param exponent an integer exponent @return RealValue
@NotNull
	public static RealValue createReal( long mantissa, boolean decimal, int exponent, boolean negative )
	{
		if( decimal )
			return new RealValueBig( new BigDecimal( mantissa ).multiply( new BigDecimal( 10 ).pow( exponent ) ) );
		if( isDoubleOverflowMayHappen( mantissa, exponent ) )
			return createReal( BigInteger.valueOf( mantissa ), false, exponent, negative );
		return new DoubleCreator( mantissa, exponent, negative ).create();
	}
@ NotNull public static RealValue createReal ( long mantissa , boolean decimal , int exponent , boolean negative ) { if ( decimal ) return new RealValueBig ( new BigDecimal ( mantissa ) . multiply ( new BigDecimal ( 10 ) . pow ( exponent ) ) ) ; if ( isDoubleOverflowMayHappen ( mantissa , exponent ) ) return createReal ( BigInteger . valueOf ( mantissa ) , false , exponent , negative ) ; return new DoubleCreator ( mantissa , exponent , negative ) . create ( ) ; }
Create real value from components
 @param mantissa the mantissa value
 @param decimal  if true - decimal notation, binary otherwise
 @param exponent an integer exponent
 @return RealValue
Create real value from components @param mantissa the mantissa value @param decimal if true - decimal notation binary otherwise @param exponent an integer exponent @return RealValue