my debugger says:

Warning 1 warning C4244: '=' : conversion from 'double' to 'float', possible loss of data Line 39