If you’re rounding to two decimal places, both of those values correctly round to 0.01. Or are you saying they shouldn’t be rounded at all? And, are they actually saved that way? Or just displayed that way?
I’m using text serialization so it’s version-control friendly.
I have several MonoBehaviours and ScriptableObjects that have float fields.
The numbers I’m talking about are in the text serialized files (I’m seeing the changes in the diffs).
So yes, they’re saved that way. And rounding them incorrectly means incorrect data and lost data.
I’m saying they shouldn’t be rounded because I typed those values myself. 0.008 and 0.0115
They’re scaling values and there’s a huge difference between those and 0.01.
Regardless of what I’m using them for, that’s pretty aggressive rounding.
It’s not happening when I type them. It seems to happen when the project gets reimported (for example, the first time you upgrade to 5.3, and also when the Library folder doesn’t exist).