mIRC Home    About    Download    Register    News    Help

Print Thread
#228824 11/01/11 07:18 PM
A
Albin
Albin
A
Hi there.
I'm using mIRC 7.17 and when I do //echo -a $sin(30°) or //echo -a $sin(30) [0.5]
mIRC returns -0.988032
Why?

Same for //echo -a $cos(60°) [0.5 again]
mIRC returns -0.952413

I really don't know why. Is it a bug or what?

Thanks in advance

#228825 11/01/11 07:42 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
$sin/cos accept both radians and degrees as input. If you want to use degrees (eg 30), you have to use the .deg property, eg $sin(30).deg . Also see /help $cos.

Last edited by qwerty; 11/01/11 07:44 PM.
#228827 11/01/11 08:09 PM
A
Albin
Albin
A
Thank you! smile


Link Copied to Clipboard