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

[Libretro] float calculation is broken #2706

Open
hayattgd opened this issue Oct 14, 2024 · 3 comments
Open

[Libretro] float calculation is broken #2706

hayattgd opened this issue Oct 14, 2024 · 3 comments

Comments

@hayattgd
Copy link

when adding 0.1 to 0, it gives a lot of 9 instead of just 0.1 in libretro
image
thing i did to it is just this: x=x+0.1 and then print(x)
i dont know so much about how does libretro and tic-80 works but i think doing same thing as standalone would fix this issue

@anescient
Copy link
Contributor

@hayattgd
Copy link
Author

hayattgd commented Oct 15, 2024

i mean can libretro do calculation same as standalone one? if so then it would fix this

@anescient
Copy link
Contributor

The difference is odd, but it could also be a difference in string formatting. I suggest trying some things with a huge precision forced in the output.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants