Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-06-06 16:41:45 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-06-06 16:41:45 (GMT)
commite3ee46aa21f22433ec6cd97069eb0c7cfa51c1ad (patch)
treef6f7245cc7774dca9d0cf15ada62a4364b1a7032
parentf91b557c6c7d37974d545b45113e3e10451fc3c5 (diff)
don't calc dec2frac on numbers > 1
-rw-r--r--abacus_window.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/abacus_window.py b/abacus_window.py
index e591b30..388e3b6 100644
--- a/abacus_window.py
+++ b/abacus_window.py
@@ -57,6 +57,8 @@ def dec2frac(d):
"""
+ if d > 1:
+ return "%s" % d
df = 1.0
top = 1
bot = 1