mIRC Home    About    Download    Register    News    Help

Print Thread
#122645 13/06/05 07:57 PM
Joined: Feb 2003
Posts: 11
T
totally Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Feb 2003
Posts: 11
So what's up here? Is it my brain or mIRC which seems to be unable to calculate?

$calc(3893208833356031+6864822661557624) - This isn't the hardest thing to calculate yet mIRC seems unable to find a proper answer.

It should return '10758031494913655' yet it returned '10758031494913656'.
What's going on guise?

ps if you change the "...624" into "...625" You should notice the bug.

#122646 13/06/05 08:18 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I'm not entirely sure right now, but as I first showed I think this is the issue.

Also check here

Check the search, there's quite a few calc bug reports.


Gone.
#122647 13/06/05 10:54 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
your correct 1 + 1 does = 3 but only for large values of 1

#122648 13/06/05 10:59 PM
Joined: Dec 2002
Posts: 208
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
It might be spiffy if mIRC used something like this, though it obviously would need to limit output to something less than 1k digits (for the line length limits).


If I knew now what I will know then... maybe things will have been different...
#122649 14/06/05 01:14 AM
Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
my guess is that it would be limited to the mIRC-standard 900 somthing :\

#122650 16/06/05 09:53 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Quote:
my guess is that it would be limited to the mIRC-standard 900 somthing :\


Sounds like a 32bit integer limit.

#122651 16/06/05 10:20 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
there talking about something else, not the current limit, which i think your right on, but rather a math engine that can do 32,000 digit values, only problem would be mircs 900 or so string length limit then.

#122652 17/06/05 07:34 AM
Joined: Dec 2002
Posts: 103
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
Ah yes that makes sense.


Link Copied to Clipboard