Python 3.0 new integer division
We now have a float result when two integers are divided in the same mannor as 2.4 or 2.5. I can handle that and use the Floor division but a simple question. Why in the world would you round down the last presented digit to a 6 instead of just leaving it along as an 8. For some reason rounding down for a float in Python does not seem correct. IDLE 3.0a4 >>> 12345678901234567890123456789012345678901234567890/345 3.5784576525317586e+46 >>> 12345678901234567890123456789012345678901234567890//345 35784576525317588087314367504383610663481839327 ^ ^| 3578457652531758600 == 3.5784576525317586e+46 -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 3.0 new integer division
"Matimus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 8, 9:13 am, "Hutch" <[EMAIL PROTECTED]> wrote: >> We now have a float result when two integers are divided in the same >> mannor >> as 2.4 or 2.5. >> I can handle that and use the Floor division but a simple question. >> >> Why in the world would you round down the last presented digit to a 6 >> instead of just leaving it along as an 8. >> For some reason rounding down for a float in Python does not seem >> correct. >> >> IDLE 3.0a4 >> >> >>> 12345678901234567890123456789012345678901234567890/345 >> >> 3.5784576525317586e+46 >> >> >>> 12345678901234567890123456789012345678901234567890//345 >> >> 35784576525317588087314367504383610663481839327 >> ^ >> ^| >> 3578457652531758600 == >> 3.5784576525317586e+46 > > This just has to do with the way floating point numbers are > represented in memory. More information: > http://docs.python.org/tut/node16.html > > Matt Was thinking IBM decimal when I asked the question --should have remembered detail of floats. Thanks Hutch -- http://mail.python.org/mailman/listinfo/python-list
PythonWin Print Problem.. Build 210
PythonWin has been a very good ide from early version thru 2.4. All work ok on THREE of my computers with THREE different HP printers. Now comes 2.5. Every thing seems to work the same except when I want to print out a copy of the source code of my project (about 38 pages) Version 2.5 acts like it is going to print out the source code but instead prints from several 100 to over 2000 BLANK PAGES pages and no source. Attempting to print out Source on SAME equipment (computers and printers) using 2.4 (WITH NO CHANGES TO EQUIPMENT OR SOFTWARE ) results in proper print out of source. Problem has been reported via direct and SourceForge but no response. Any body else having the same problem? -- http://mail.python.org/mailman/listinfo/python-list
Re: PythonWin Print Problem.. Build 210
"Roger Upole" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Hutch" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> PythonWin has been a very good ide from early version thru 2.4. >> >> All work ok on THREE of my computers with THREE different HP printers. >> >> Now comes 2.5. >> Every thing seems to work the same except when I want to print out a copy >> of the source code of my project (about 38 pages) >> >> Version 2.5 acts like it is going to print out the source code but >> instead >> prints from several 100 to over 2000 BLANK PAGES pages and no source. >> >> Attempting to print out Source on SAME equipment (computers and printers) >> using 2.4 (WITH NO CHANGES TO EQUIPMENT OR SOFTWARE ) results in >> proper print out of source. >> >> Problem has been reported via direct and SourceForge but no response. >> >> Any body else having the same problem? >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > Did you see the response to the bug report on SF ? > http://sourceforge.net/tracker/index.php?func=detail&aid=1907148&group_id=78018&atid=551954 > > There is also some more info in this thread on the python-win32 mailing > list: > http://mail.python.org/pipermail/python-win32/2006-December/005397.html > > Roger Sorry to report after uninstalling both Python 2.5 and Pythonwin 2.5 and reinstalling.. THE PROBLEM IS STILL WITH US... -- http://mail.python.org/mailman/listinfo/python-list
