MiserableLife Posted July 9, 2010 Share Posted July 9, 2010 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 Link to comment Share on other sites More sharing options...
trancexx Posted July 9, 2010 Share Posted July 9, 2010 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 Link to comment Share on other sites More sharing options...
MiserableLife Posted July 9, 2010 Author Share Posted July 9, 2010 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 ? Link to comment Share on other sites More sharing options...
trancexx Posted July 9, 2010 Share Posted July 9, 2010 What is the difference between 0x8B00 and "0x8B00"Former is number, latter not (string). ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
MiserableLife Posted July 9, 2010 Author Share Posted July 9, 2010 Got it. Thanks~ ConsoleWrite(0xB800 & @CRLF) ConsoleWrite('0xB800' & @CRLF) ConsoleWrite(Binary(0xB800) & @CRLF) ConsoleWrite(Binary('0xB800') & @CRLF) ConsoleWrite(BinaryLen(0xB800) & @CRLF) ConsoleWrite(BinaryLen('0xB800') & @CRLF) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now