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

[Issue] Numbers #46

Closed
PillFall opened this Issue Jul 19, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@PillFall

PillFall commented Jul 19, 2017

When you create a new model, sometimes the numbers starts to be rounded. It is annoying, especially when you work with small things and enlarges the output *.json.

For example, you are working on a computer's mouse, you would have to work with decimals, after you sightly put it on the place, one of the numbers that indicate the element's position or size is 1.5, but you move -0.1 the element and the values changes to 1.39999999999* or 1.40000000000*, where the * are a random number. This also ocurs when you goes up, or with integer numbers.

@JannisX11 JannisX11 changed the title from [Bug] Numbers to [Issue] Numbers Jul 19, 2017

@JannisX11

This comment has been minimized.

Owner

JannisX11 commented Jul 19, 2017

Here is an explaination why this is happening:
https://stackoverflow.com/questions/588004/is-floating-point-math-broken

@PillFall

This comment has been minimized.

PillFall commented Jul 19, 2017

Yes, but, why it still persist even when I change it manually? It not supposed a reasignation of the variable? I mean, when you get the error, you change the value manually, for example, you obtain 0.4000000002, and you change it for 0.4 or 0.3, or whatever, and it didn't change, when deselect and select again, it still say 0.4000000002.

@JannisX11

This comment has been minimized.

Owner

JannisX11 commented Aug 1, 2017

Fixed in 1.8. Badly rounded numbers might still appear in exported json but not inside Blockbench anymore.

@JannisX11 JannisX11 closed this Aug 1, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment