Commit f4dbc091 authored by sumpfralle's avatar sumpfralle

reverted previous conditional import of decimal (it is always available)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@764 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 1c69482b
......@@ -20,22 +20,16 @@ You should have received a copy of the GNU General Public License
along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
"""
# use the "decimal" module for fixed precision numbers (only for debugging)
_use_precision = False
# "decimal" is not available in some minimal installations of python2.6
# (e.g. in Debian Lenny)
try:
import decimal
except ImportError:
_use_precision = False
import decimal
import math
INFINITE = 100000
epsilon = 0.00001
# use the "decimal" module for fixed precision numbers (only for debugging)
_use_precision = False
# the lambda functions below are more efficient than function definitions
......
Markdown is supported
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