double r = 11.631; double theta = 21.4;
In the debugger, these are shown as 11.631000000000000
11.631000000000000
One way you can avoid this is to use a library that uses an alternative method of representing decimal numbers, such as BCD