Examples of divideToIntegralValue()


Examples of java.math.BigDecimal.divideToIntegralValue()

    if( t.isIntegerOnly() )
      return n;

    if( Type.BIG_DECIMAL.equals( t ) ) {
      final BigDecimal d = (BigDecimal) n;
      return shrinkBigInteger( d.divideToIntegralValue( BigDecimal.ONE ).toBigIntegerExact() );
    }
    else if( Type.RATIONAL.equals( t ) ) {
      final Rational r = (Rational) n;
      return roundDown( r.getQuotient() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.