mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#51849 29/09/03 05:11 AM
Joined: Sep 2003
Posts: 10
Z
zort Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2003
Posts: 10
$calc(8670007398507951000000000 / 4294967296) returns 2018643403078418, whereas Windows calculator reports "2018643403078417.9922193288803101". So far mIRC has been reliable for many things, but apparantly it's useless when dealing with large numbers. (I have an actual reason for making this division, I'm not just trying to see where mIRC will screw up.)

#51850 29/09/03 05:29 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I'd love to know what reason could possibly generate such large numbers smile


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#51851 29/09/03 06:21 AM
Joined: Sep 2003
Posts: 10
Z
zort Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2003
Posts: 10
Solving mathematical problems. For example, searching for (F[x] % 2^32)=0 when F[x]=F[x-1]+F[x-2] (Fibonacci sequence).

Last edited by zort; 29/09/03 06:40 AM.
#51852 29/09/03 09:28 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
You could of course try to use a program made for such things. mIRC wasn't made for complex mathematical stuffs.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#51853 29/09/03 09:50 AM
Joined: Jan 2003
Posts: 428
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 428
Nah I understand wanting to do it in mIRC... I'm always looking for ways to do things while online chatting, too.

And since a computer is just a big calculator (*grin*), maths seems as good a plaything as any - I mean, why have a scripting language if you don't experiment with it?

PastMaster




IRCnet & DALnet @#travelersinn
:-: IRC for fun and relaxation :-:
#51854 29/09/03 11:04 AM
Joined: Sep 2003
Posts: 10
Z
zort Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2003
Posts: 10
LocutusofBorg, your reply doesn't make sense to me. You're ready to dismiss my post because mIRC wasn't made for math purposes? This problem shouldn't be fixed because my usage of mIRC is deemed improper by you? It seems to me that people use mIRC for non-IRC related tasks just as much as IRC-related tasks, and it's needless to say that mIRC has features that have no association with the IRC protocol or the use of IRC servers. I think a feature should work properly no matter how it's used.

BTW, the math problem I was trying to solve with the aid of mIRC, IMO, isn't close to being complicated. The code involved with solving the problem is quite small, in fact.

#51855 29/09/03 11:12 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Quote:
It seems to me that people use mIRC for non-IRC related tasks just as much as IRC-related tasks, and it's needless to say that mIRC has features that have no association with the IRC protocol or the use of IRC servers.


exactly, if you had asked about a problem with /splay or /sockopen i doubt he/she would have said the same crazy


new username: tidy_trax
#51856 29/09/03 03:20 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I dont exactly see mirc needing a complex mathmatical operation. Yes, as you pointed out, mirc has included variious things to "enhance" the chatting experience, but if you've noticed none of them go dramatically away from chatting. Most are things you can do while you chat, not instead of chat. Listining to music, transferring (legal) files to each other, etc.. A mathmatical addition to do precise calculations doesnt really have a place in the IRC experience IMO. Though it may be convenient, its not entirely practical.

If you do need the extended math, try a dll or perhaps /run calc


-KingTomato
#51857 29/09/03 03:27 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Well don't you think that if it has been made available, it should work correctly? I do, and if it doesn't work correctly, I would call that a bug, complex operation or not.


Edit: Looks correct to me .. I got:
....$calc = 2018643403078417.992
Win calc = 2018643403078417.9922193288803101

was a $round(,0) added in there?

Last edited by r0ck0; 29/09/03 03:54 PM.
#51858 30/09/03 02:00 AM
Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
$calc(8670007398507951000000000 / 4294967296) returns 2018643403078418 here, without using $round(,0). I'm on Win98.

#51859 30/09/03 05:39 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Quote:

ready to dismiss my post because mIRC wasn't made for math purposes?

Basically: yes. If you start implementing everything into mIRC it would become like Windows - so many features that the basic features are becoming unimportant.

Quote:

This problem shouldn't be fixed because my usage of mIRC is deemed improper by you?

Not deemed improper by me -- mIRC is a chatting program, not a calculator. Your suggestions is at all unrelated to the concept of chatting. And while as suggested people like to do other things while chatting, I simply run another program at the same time and run it in the background.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#51860 30/09/03 05:42 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
As far as I know math problems in programming, I have had experience in programming where the choice of which type of number is imprtant for the outcome. There's integeres, floating point variables, signed and unsigned, blah blah. This could very well be a limitation in the choice Khaled made there, where he chose the simpler, less advanced option because the other, more complex option is unneeded during chatting.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#51861 30/09/03 05:43 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Same here btw.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#51862 30/09/03 11:44 AM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
you win98 also ?

#51863 30/09/03 01:25 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Same here on Win98se with 6.1.

#51864 30/09/03 01:29 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Well I was beginning to think that maybe
it was an OS thing but then I got this:

5.61: 2018643403078418
5.71: 2018643403078417.992
5.82: 2018643403078417.992
5.91: 2018643403078417.992
6.03: 2018643403078417.92
..6.1: 2018643403078418

running XP Pro

Last edited by r0ck0; 30/09/03 01:45 PM.
#51865 30/09/03 01:55 PM
Joined: Aug 2003
Posts: 136
Vogon poet
Offline
Vogon poet
Joined: Aug 2003
Posts: 136
Quote:
Basically: yes. If you start implementing everything into mIRC it would become like Windows - so many features that the basic features are becoming unimportant.

Last time i checked this is the bug report forum not the future suggestion forum. Why do you always say negative things? Didnt your mother ever tell you if you cant say something nice dont say anything at all?


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
#51866 30/09/03 01:56 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
You realise that instead of subtling upping your post count, you CAN use bold heading to respond to the person you've intended--right?

Online

Don't you agree?


-KingTomato
#51867 30/09/03 04:35 PM
Joined: Sep 2003
Posts: 10
Z
zort Offline OP
Pikka bird
OP Offline
Pikka bird
Z
Joined: Sep 2003
Posts: 10
Who here has used a screw driver to open a can of paint? Perhaps you've used a paper towel to hold a slice of pizza when all the plates were in the dish washer? Have you used a pen to scratch your back? (etc., etc.) You must be breaking some rule or law of ethics (sarcasm)! Original intent of a product means nothing (when it comes to there being a bug in the product that should be fixed), and neither does any of your replies. Your replies have been completely irrelevant.

The fact is that mIRC provides a feature (the $calc function). The mIRC help file gives no warnings of stipulations/limits, such as the size of numbers given as arguments to the $calc function. Since the help file does NOT warn of a limit, while it IS limited, I consider this a bug. If I tried to send data on a socket using mIRC without checking the queue buffer, I wouldn't complain if I received an error because the mIRC help file specifically states that the buffer is limited to a maximum of 16384 bytes. The help file clearly states that when using $round and $int for floating point numbers, "The number of decimals is currently limited to 5 digits". Again, no limit is stated about the $calc function in it's ability to process large numbers. To fix this bug, I think it either needs to be stated in the help file that $calc is meant to be limited, or else the limitation needs to be fixed.

I'm using mIRC 6.01 under Windows 2000 Pro.

Last edited by zort; 30/09/03 04:40 PM.
#51868 30/09/03 09:29 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Agreed. It doesn't matter for what "principal purpose" mIRC was made when $calc() is already there and no limit of this kind was clearly (yet?) related by Khaled. No one is entitled to judge its usage.


* cold edits his posts 24/7
Page 1 of 2 1 2

Link Copied to Clipboard