1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-11 17:45:20 +00:00

Implement preciseNumber for arbitrary precision.

This commit is contained in:
Arthur Drobot
2017-07-28 11:38:22 -07:00
parent c9fad36d16
commit c184b55738
3 changed files with 116 additions and 1 deletions

View File

@@ -228,7 +228,7 @@ public class StandardPlugin extends Plugin {
@Override
protected NumberInterface applyInternal(NumberInterface[] params) {
return StandardPlugin.this.getOperator("^").getFunction().apply(params[0], (new NaiveNumber(0.5)));
return StandardPlugin.this.getOperator("^").getFunction().apply(params[0], ((new NaiveNumber(0.5)).promoteTo(params[0].getClass())));
}
});
}