Problem about sin function

I don't gets actual value of sin function. Such as c++ compiler gives sin(0.18)is equal to 0.17903 but my calculater gives sin(0.18) is to 0.003141587485879563
So how can I get the actual value of sin function. Please help me.
Set your calculator to radians and they'll be the same. sin() takes radians so you have to convert.

radians = degrees * pi / 180
Ahh, you are confusing degrees and radians.
The arguments for Sin, Cos, etc should be given in radians
( damn mike - I thought i was up early :-) )
Last edited on
You are up early, I'm just up late =)

Bedtime.
Topic archived. No new replies allowed.