Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rounding errors in python #604

Closed
meeuw opened this issue Mar 2, 2018 · 2 comments
Closed

rounding errors in python #604

meeuw opened this issue Mar 2, 2018 · 2 comments

Comments

@meeuw
Copy link

meeuw commented Mar 2, 2018

When I convert a float to string I get weird rounding errors using Python 3.6.4:

$ python3
Python 3.6.4 (default, Jan  7 2018, 03:53:53)
[GCC 4.2.1 Compatible Android Clang 5.0.300080 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> str(0.1)
'0.10000000000000001'

According to the documentation it should display 0.1:
https://docs.python.org/3/tutorial/floatingpoint.html

I'm running termux on a Asus C101P Chromebook (ARMv8 processor).

@iRomanyshyn
Copy link

Oops, I made duplicate bug #617 with same problem.

@fornwall
Copy link
Member

This issue was moved to termux/termux-packages#2236

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants