The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Python round() broken
04-17-2021, 07:08 PM (This post was last modified: 04-19-2021 07:47 AM by Guenter Schink.)
Post: #1
Python round() broken
Is it just my G2 to show this error in Python?

round(3/7,6) ==> 0.4285709999999999 (if I counted the 9s correctly)
should be 0.2428571
similar error with
round(5/7,6)
round(3/11,6)
round(5/11,6
round(7/11,6)

previously in my post a first digit "2"crept in inadvertently

The virtual calculator 64bit doesn't show this behavior.

Günter

PS: of course reported to calcbeta too
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python round() broken - Guenter Schink - 04-17-2021 07:08 PM
RE: Python round() broken - toml_12953 - 04-17-2021, 08:48 PM
RE: Python round() broken - Guenter Schink - 04-17-2021, 11:10 PM
RE: Python round() broken - toml_12953 - 04-18-2021, 12:32 AM



User(s) browsing this thread: 1 Guest(s)