Commit ccb4c87e authored by Miguel Tremblay's avatar Miguel Tremblay
Browse files

Revision 309 was overwritten by commit 313.

This is the second time it occured. There might be a strange force coming from outer space who do not like this zero condition.
parent 8e4a288f
......@@ -422,8 +422,11 @@ def sign(dResult, dSign):
Author Date Reason
Miguel Tremblay August 24th 2004
# If dSign is == 0, raise an error
if dSign == 0:
sMetroUtilError = _("Cannot determine the sign of zero")
raise sMetroUtilError
elif dSign > 0:
return abs(dResult)
return -abs(dResult)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment