mIRC Home    About    Download    Register    News    Help

Print Thread
#228824 11/01/11 07:18 PM
Joined: Jan 2011
Posts: 2
A
Albin Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Jan 2011
Posts: 2
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

Albin #228825 11/01/11 07:42 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
$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.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Albin #228827 11/01/11 08:09 PM
Joined: Jan 2011
Posts: 2
A
Albin Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
A
Joined: Jan 2011
Posts: 2
Thank you! smile


Link Copied to Clipboard