NumericExpression one() { NumericRep rep_one = new NumericRep(new Significand(new Fraction("1"))); Factor factor = new Factor(); factor.add(new NumericConstant(rep_one)); Term term = new Term(); term.add(factor); NumericExpression ne = new NumericExpression(); ne.add(term); return(ne); }
public NumericConstant(Sign _sign, NumericRep rep) { numericrep = rep; sign = _sign; }
public NumericConstant(NumericRep rep) { numericrep = rep; sign = Sign.PLUSSIGN; }