Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why does sin(90) in C++ return 1?

Name: Anonymous 2006-09-09 12:04

90 is not divisible by Pi :confused:

Name: Anonymous 2006-09-09 12:30

sin(90) returns 0.893997 for me.  Are you doing something retarded like storing the value in an int and then outputting it, or are you just using a different math library that takes degrees instead of radians?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List