-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Division in inspector rounds result #25856
Comments
That's intended behaviour, most programming languages work this way. If you divide an integer by an integer, you get an integer (and thus the integral part of the division). Use |
That's terrible behavior, though. The inspector is not a programming language and a field in the inspector is not a coding area - if anything, people will see it like a calculator. Often you want to quickly divide a bunch of values to make adjustments in a batch, without having to pay attention to the actual value. If the field is float, then adding I'm not asking to "solve" this by showing
If you really want to allow integer/floor division in float fields, then make a @akien-mga Please reopen. |
If you want to change the behaviour open a proposal though I'm pretty sure there's one already if you search, this is for bugs and shouldn't be reopened See: |
Godot version:
3.1 beta 4
Issue description:
Example:
Result: value is 0
Expected: value is 0.5
Note:
I'm not sure if this expected behavior, but in my opinion as "scale" is vector2 and it contains X and Y which are float, so the result of division calculation should be float as well. But right now result is rounded.
The text was updated successfully, but these errors were encountered: