When I use trig in VB, I get inaccurate answers for some angles. For instance, it says that cos(90)=6.123E-17 instead of 0 and that tan(90)=1.633E+16 instead of undefined. Does anyone know a solution to this problem? Oh, and just in case you were wondering, my program does convert the input from degrees to radians.