Sign in to follow this  
Followers 0
CrazyU

Strange question?

4 posts in this topic

Script1

$NUM = 9268017928447

MsgBox(4096,"Test", $NUM&"")

Script2

$NUM = 1030875233476117895070

MsgBox(4096,"Test", $NUM&"")

Script1

01.BMP

Script2

02.BMP

I know $NUM = 1030875233476117895070 Can obtain correct,Why but is this?

Share this post


Link to post
Share on other sites



confirmed

this does not work, creates a negative number

$NUM = 10308752334761178950 ;70
MsgBox(0,"Test", $NUM)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

oooo, even weirder... check this out...

$NumbersHaveLimitations_LookItUpInTheHelpFile = 234657625376538162312391239712894

MsgBox(4096,"Test", $NumbersHaveLimitations_LookItUpInTheHelpFile&"")

confirmed...

 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I know $NUM = 1030875233476117895070 Can obtain correct,Why but is this?

because in AutoIT numbers are "stored" as a 64-Bit signed integer. Thus the positive value range goes from 0 - 2^63 - 1 (which is 9223372036854775807). So, your number was simply too large, which led to an "overflow" (not really an overflow, but I don't know a better word).

See help file: FAQ - Nr. 15 - Current limits ....

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0