wxPython & floating point numbers ?
Ueli Schlaepfer
u_schlaepfer at bluewin.ch
Sat Dec 9 12:22:06 EST 2000
Hi everyone,
when using the otherwise excellent wxPython package, I observe the
following strange behaviour:
>>> print 0.1
0.1
>>> import wxPython.wx
>>> print 0.1
0.0
Version information:
Python 1.5.2 (#1, Nov 9 1999, 12:15:14) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> wxPython.wx.wxMAJOR_VERSION
2
>>> wxPython.wx.wxMINOR_VERSION
2
>>> wxPython.wx.wxRELEASE_NUMBER
2
Has anybody seen the same error? What is the solution, if there is any?
Thanks,
Ueli
More information about the Python-list
mailing list