Hi,

could someone kindly explain to me why the simple code below give me a negative value for cosine of 90 degrees?

thanks!

Sergio

could someone kindly explain to me why the simple code below give me a negative value for cosine of 90 degrees?

Code:

#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG LOCAL angle AS extended angle = 0.0174532925199433## * 90 PRINT USING$("#.##################",COS(angle)) PRINT SGN(COS(angle)) WAITKEY$ END FUNCTION

Sergio

## Comment