This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Translating code between Lua and JS
#2
Code:
number = tonumber(input, 16)
hex = string.format('%X', number)

Convert hex string to raw binary, make sure second argument is true otherwise zero bytes will be ignored:
Code:
str = lmcore.hextostr('7FF2FAB843FA000000FFFE065D', true)
Reply


Messages In This Thread
RE: Translating code between Lua and JS - by admin - 06.09.2018, 07:47

Forum Jump: