This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

expr overflow?

Old posts that have not been replied to for several years.
Locked
P
ProXy
Op
Posts: 126
Joined: Sun Aug 11, 2002 3:09 pm

expr overflow?

Post by ProXy »

I just wanted to solve this simple calculation: 16777216 * 253
Whenever I try to do this with expr I get a negative value. It seems to be an overflow. How could I calc this two numbers?

[03:23:10] <@ProXy> !tcl expr 16777216 * 253
[03:23:10] <@Hack|The|Planet> result: -50331648 - clicks: 124
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Hi, please tell me you don't have a !tcl public command. heh.

To solve your problem, try "expr 1.0 * 16777216 * 253".
P
ProXy
Op
Posts: 126
Joined: Sun Aug 11, 2002 3:09 pm

Post by ProXy »

Well i have a public !tcl script...but bound to m|m :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Binding to m|m in situations of public scripts with EXPR, is pointless.

Any1 with access to the script, has as much power as a global owner, that has been added to the config file $owner setting.

Yes, it's that insecure.
Locked