Jump to content
Sign in to follow this  
sectying

help me !

Recommended Posts

sectying

$1 = "94860708214790866899"

$2 = "123456987"

$3 = $1+$2

msgbox(0,"",$3)

why is wrong ? please help me!!!

Edited by sectying

Share this post


Link to post
Share on other sites
weaponx

Take the quotes of of your numbers, they are not strings.

Share this post


Link to post
Share on other sites
PsaltyDS

$1 = "94860708214790866899"

$2 = "123456987"

$3 = $1+$2

msgbox(0,"",$3)

why is wrong ? please help me!!!

Why is what wrong? AutoIt performs an automatic Number() on your inappropriate strings, the first of which is too large for an INT32 variable and is therefore converted to a DOUBLE float, it does the math to the precision possible with a float DOUBLE, and presents the floating point answer in the MsgBox in engineering notation (9.48607082149143e+019).

Didn't you beat this dead horse already with another login ID? Were you by any chance banned for not letting it go?

:D

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×