Hello!
I was wondering why when I enter a value (let's say 3.2) in a parameter, it automatically changes it to 3.2000000000000002.
If I enter 3.0, it works. But as soon as add a number after the “dot” it adds .0000000000000002.
My OCD cannot handle it.
Right now, it's doing it with on a box sizeY.
Is it a bug? Thanks
.0000000000000002 automatically added to my values
2860 2 0-
- drjleggett
- Member
- 1 posts
- Joined: 10月 2020
- オフライン
-
- jsmack
- Member
- 8173 posts
- Joined: 9月 2011
- オフライン
It's not added, that's just the closest number to the value that exists. There's no such number as 3.2 in floating point. Floating point can't represent all decimal numbers exactly.
some background:
https://en.wikipedia.org/wiki/IEEE_754 [en.wikipedia.org]
https://en.wikipedia.org/wiki/Floating-point_arithmetic [en.wikipedia.org]
some background:
https://en.wikipedia.org/wiki/IEEE_754 [en.wikipedia.org]
https://en.wikipedia.org/wiki/Floating-point_arithmetic [en.wikipedia.org]
-
- BrianHanke
- Member
- 453 posts
- Joined: 4月 2018
- オフライン
Just left click on the word “Size” and it will toggle back to normal human numbers.
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- Quick Links