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

-#/0 Returns positive Infinity with compiler off. #224

Open
Da-Git-Thing opened this issue Sep 18, 2024 · 1 comment
Open

-#/0 Returns positive Infinity with compiler off. #224

Da-Git-Thing opened this issue Sep 18, 2024 · 1 comment

Comments

@Da-Git-Thing
Copy link

The output should return negative Infinity, but it returns positive Infinity, I'm unable to replicate the bug in another project in Turbowarp or vanilla scratch, I've tested this on Ubuntu Desktop & Firefox running Turbowarp.

image
image

@Tacodiva
Copy link

Ok so there's two things happening here. The "0" here is not actually 0, it's "-0". In Scratch, -0 displays as just "0" so it's indistinguishable from a regular, non-negitive 0. The interpreter is actually treating this correctly and the compiler is handling it incorrectly. The compiler incorrectly treats -0 as 0 in this case because of #100.

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