Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
$sin, $cos
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$sin, $cos
#
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
Copy Link to Clipboard
Re: $sin, $cos
#
228825
11/01/11
07:42 PM
Joined:
Jan 2003
Posts: 2,125
Q
qwerty
Hoopy frood
qwerty
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
.
Copy Link to Clipboard
Re: $sin, $cos
#
228827
11/01/11
08:09 PM
A
Albin
Albin
A
Thank you!
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage