public Decimal modulo(Decimal other) throws UcumException { if (other == null) return null; Decimal t = divInt(other); Decimal t2 = t.multiply(other); return subtract(t2); }
private void testDivInt(String s1, String s2, String s3) throws UcumException { Decimal v1 = new Decimal(s1); Decimal v2 = new Decimal(s2); Decimal v3 = v1.divInt(v2); check(v3.asDecimal().equals(s3), s1+" /(int) "+s2+" = "+s3+", but the library returned "+v3.asDecimal()); }
d1 = new Decimal(l.primitiveValue()); Decimal d2 = new Decimal(r.primitiveValue()); result.add(new IntegerType(d1.divInt(d2).asDecimal())); } catch (UcumException e) { throw new PathEngineException(e);
d1 = new Decimal(l.primitiveValue()); Decimal d2 = new Decimal(r.primitiveValue()); result.add(new IntegerType(d1.divInt(d2).asDecimal())); } catch (UcumException e) { throw new PathEngineException(e);
public Decimal modulo(Decimal other) throws UcumException { if (other == null) return null; Decimal t = divInt(other); Decimal t2 = t.multiply(other); return subtract(t2); }
private void testDivInt(String s1, String s2, String s3) throws UcumException { Decimal v1 = new Decimal(s1); Decimal v2 = new Decimal(s2); Decimal v3 = v1.divInt(v2); check(v3.asDecimal().equals(s3), s1+" /(int) "+s2+" = "+s3+", but the library returned "+v3.asDecimal()); }
d1 = new Decimal(l.primitiveValue()); Decimal d2 = new Decimal(r.primitiveValue()); result.add(new IntegerType(d1.divInt(d2).asDecimal())); } catch (UcumException e) { throw new PathEngineException(e);
d1 = new Decimal(l.primitiveValue()); Decimal d2 = new Decimal(r.primitiveValue()); result.add(new IntegerType(d1.divInt(d2).asDecimal())); } catch (UcumException e) { throw new PathEngineException(e);
d1 = new Decimal(l.primitiveValue()); Decimal d2 = new Decimal(r.primitiveValue()); result.add(new IntegerType(d1.divInt(d2).asDecimal())); } catch (UcumException e) { throw new PathEngineException(e);