mIRC Home    About    Download    Register    News    Help

Print Thread
#122645 13/06/05 07:57 PM
T
totally
totally
T
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,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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.

#122647 13/06/05 10:54 PM
D
DaveC
DaveC
D
your correct 1 + 1 does = 3 but only for large values of 1

#122648 13/06/05 10:59 PM
Joined: Dec 2002
Posts: 206
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 206
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).

#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
P
Vogon poet
Offline
Vogon poet
P
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
D
DaveC
DaveC
D
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
P
Vogon poet
Offline
Vogon poet
P
Joined: Dec 2002
Posts: 103
Ah yes that makes sense.


Link Copied to Clipboard