From c420ef980ba978f69dbdebe517fb09e3e09fbe35 Mon Sep 17 00:00:00 2001 From: Lafrite Date: Tue, 25 Feb 2014 17:02:15 +0100 Subject: [PATCH] solve (-2) * ... parenthesis issue --- pymath/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymath/render.py b/pymath/render.py index cc9e1f6..b942902 100644 --- a/pymath/render.py +++ b/pymath/render.py @@ -114,7 +114,8 @@ class Render(object): """ # Si l'operande est negatif if self.isNumber(operande) \ - and operande < 0: + and operande < 0 \ + and posi == "after": return 1 # Si c'est un polynom