double num = asDouble(args[0], true);
int dig = 1;
if (args.length == 2)
dig = asInteger(args[1], true);
if (dig == 1) {
return new ExprDouble((int) num);
} else {
int div = (int) Math.pow(10, dig);
int v = (int) (num * div);
double d = (double) v / div;
return new ExprDouble(d);
}
}