Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/functions.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2009-04-22 21:54:57 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2009-04-22 21:54:57 (GMT)
commit46a6c14e9d6c45289080059779b35ce6288458d0 (patch)
tree24f2141dd4210af8318d285832c896a2b019e0a2 /functions.py
parent067ba4d139545d271beb255f8856219be33cbcd6 (diff)
Fix precision issue
Diffstat (limited to 'functions.py')
-rw-r--r--functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.py b/functions.py
index 7f8a552..ac45610 100644
--- a/functions.py
+++ b/functions.py
@@ -80,7 +80,7 @@ def _d(val):
d = _Decimal(val)
return d.normalize()
elif type(val) is types.FloatType or hasattr(val, '__float__'):
- s = '%.10e' % float(val)
+ s = '%.18e' % float(val)
d = _Decimal(s)
return d.normalize()
else: