Incorrect Double.ToString formatting up to an thrown Exceptions

Another related thread:

https://forums.ghielectronics.com/t/exception-in-tostring-f3/24140