ark1320 Posted March 8 Report Posted March 8 Is there a way to represent numbers directly in binary format? For example, instead of writing ipc.writeUB(0x1234, 0xF2), write ipc.writeUB(0x1234, 0b11110010) ? I can't seem to find anything that shows how to indicate the number is binary. Thanks, Al
John Dowson Posted March 9 Report Posted March 9 11 hours ago, ark1320 said: instead of writing ipc.writeUB(0x1234, 0xF2), write ipc.writeUB(0x1234, 0b11110010) ? Maybe, I don't know though - why not just try it? I don't know if lua supports "0b" for binary, but should be easy to write a quick script to test / check this. 11 hours ago, ark1320 said: I can't seem to find anything that shows how to indicate the number is binary. Me neither - it would be in the general Lua documentation, not in FSUIPC's documentation. But I would think that it would be 0b, and if that doesn't work then it isn't supported. John
ark1320 Posted March 9 Author Report Posted March 9 Hi John, I did in fact try some things that didn't work. FSUIPC has added some Lua functionality (such as all the ipc.wxy commands) that are not in the formal Lua documentation, so I thought I'd ask here "just in case". Thanks for checking, Al
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