1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-27 17:15:21 +00:00

Merge branch 'big-decimal'

This commit is contained in:
2017-07-28 13:18:44 -07:00
3 changed files with 116 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ public class NaiveNumber implements NumberInterface {
@Override
public NumberInterface promoteTo(Class<? extends NumberInterface> toClass) {
if(toClass == this.getClass()) return this;
else if(toClass == PreciseNumber.class){
return new PreciseNumber(Double.toString(value));
}
return null;
}