0

Hello, I am writing an application which uses the trig functions of the math module in python but for some reason, the float values that some of the calculations return are obviously incorrect. for example

`math.cos(90*math.pi/180)`

returns 6.1230317691118863e-17 rather than 0. Does anyone know of a way which I cant get this function to return an acurate value. I think the reason why it does not return 0 is because the value of the pi variable in the math module is not 100% accurate. Any ideas?