Package com.clarkparsia.pellet.datatypes.types.real

Examples of com.clarkparsia.pellet.datatypes.types.real.Rational


    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() );
    }
    else
      throw new IllegalStateException();
  }
View Full Code Here


        return shrinkBigInteger( dandr[0].toBigIntegerExact() );
      else
        return shrinkBigInteger( dandr[0].toBigIntegerExact().subtract( BigInteger.ONE ) );
    }
    else if( Type.RATIONAL.equals( t ) ) {
      final Rational r = (Rational) n;
      return roundFloor( r.getQuotient() );
    }
    else
      throw new IllegalStateException();
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.datatypes.types.real.Rational

Copyright © 2018 www.massapicom. 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.