Stop Inspector from truncating doubles

Is there any way to turn off value truncation in the inspector? If I enter the value -116.431985123 and hit enter the following happens:

  • The inspector truncates it and show it as -116.432.
  • In the script, the actual value is now -116.431983947754

I don’t mind not showing the digits in the inspector but I absolutely need the value to be what I set it to.

I think the only thing you could do is use a string for the inspector, and then parse the value. You could make a custom inspector to ensure that the string is always formatted as a number and doesn’t accept other characters.