Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
$calc bug
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$calc bug
#
73749
05/03/04
12:44 AM
Joined:
May 2003
Posts: 31
Sussex, England.
B
Bleepy
OP
Ameglian cow
OP
Bleepy
Ameglian cow
B
Joined:
May 2003
Posts: 31
Sussex, England.
//echo -a $calc(100000000000000000000000000000000000000000000000000000000000 + 1)
returns
9999999999999999
7
000000000000000000000000000000000000000000
...
@#HelpDesk - DALnet
Copy Link to Clipboard
Re: $calc bug
#
73750
05/03/04
01:14 AM
Joined:
Sep 2003
Posts: 4,230
D
DaveC
Hoopy frood
DaveC
Hoopy frood
D
Joined:
Sep 2003
Posts: 4,230
wow hope i never need to add 1 to 100000000000000000000000000000000000000000000000000000000000
Copy Link to Clipboard
Re: $calc bug
#
73751
05/03/04
06:31 AM
Joined:
Dec 2002
Posts: 1
Singapore
A
ad3285
Mostly harmless
ad3285
Mostly harmless
A
Joined:
Dec 2002
Posts: 1
Singapore
well according to the post i tried the following:
//echo -a $calc(10000000000000000000000 + 0)
it returns 10000000000000000000000
which is perfectly fine.
but when i try to add another 0 behind
//echo -a $calc(100000000000000000000000 + 0)
it returns 99999999999999992000000
seems like the problems only affect with int numbers bigger than 24char
Copy Link to Clipboard
Re: $calc bug
#
73752
05/03/04
08:08 AM
Joined:
Dec 2002
Posts: 18
Shanghai, China
L
Lodd
Pikka bird
Lodd
Pikka bird
L
Joined:
Dec 2002
Posts: 18
Shanghai, China
so crazy, isn't it?
Copy Link to Clipboard
Re: $calc bug
#
73753
05/03/04
04:18 PM
Joined:
Dec 2002
Posts: 5,421
London, UK
Khaled
Hoopy frood
Khaled
Hoopy frood
Joined:
Dec 2002
Posts: 5,421
London, UK
Yes, as with all programming/scripting languages, $calc() handles numbers up to a certain size, anything beyond that will result in overflow and the result is indeterminate.
Copy Link to Clipboard
Re: $calc bug
#
73754
13/03/04
10:53 AM
Joined:
Jan 2004
Posts: 79
Greece
C
cmad
Babel fish
cmad
Babel fish
C
Joined:
Jan 2004
Posts: 79
Greece
and it's surprising it can handle so big numbers
My ally is the compiler, and a powerful ally it is!
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
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage