Jump to content
Sign in to follow this  
MiserableLife

binary question

Recommended Posts

MiserableLife

How come a binary number with quotes and without quotes has different binary length?

Is it because it is stored in different datatypes inside AutoIt ?

Thanks

$bin0 = 0xB800
Msgbox(0,'',BinaryLen($bin0));BinaryLen = 4
$bin1 = "0xB800"
Msgbox(0,'',BinaryLen($bin1));BinaryLen = 2

Share this post


Link to post
Share on other sites
trancexx

How come a binary number with quotes and without quotes has different binary length?

To be able to understand the answer you have to understand what's wrong with your question.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
MiserableLife

I wanted to ask my question, but I don't know how to express it.

So I just did it even if it has a problem.

How about this:

What is the difference between

0x8B00 and "0x8B00"

if there's no difference, then

why BinaryLen(0x8B00) will return 4

and BinaryLen("0x8B00") returns 2 ?

Share this post


Link to post
Share on other sites
trancexx

What is the difference between

0x8B00 and "0x8B00"

Former is number, latter not (string).

♡♡♡

.

eMyvnE

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  

×