From 9e3b550a157cb0fad9265cbf629a0344a4f53ae3 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 28 Jul 2017 14:39:37 -0700 Subject: [PATCH] Add a promotion priority to PerciseNumber --- src/org/nwapw/abacus/function/Function.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/nwapw/abacus/function/Function.java b/src/org/nwapw/abacus/function/Function.java index 103c3f4..4300279 100755 --- a/src/org/nwapw/abacus/function/Function.java +++ b/src/org/nwapw/abacus/function/Function.java @@ -2,6 +2,7 @@ package org.nwapw.abacus.function; import org.nwapw.abacus.number.NaiveNumber; import org.nwapw.abacus.number.NumberInterface; +import org.nwapw.abacus.number.PreciseNumber; import java.util.HashMap; @@ -17,6 +18,7 @@ public abstract class Function { private static final HashMap, Integer> priorityMap = new HashMap, Integer>() {{ put(NaiveNumber.class, 0); + put(PreciseNumber.class, 1); }}; /**