double r = 11.631; double theta = 21.4;
In the debugger, these are shown as 11.631000000000000
11.631000000000000
Refer to General Decimal Arithmetic
Also take note when comparing floats, see this answer for more information.