09-21-2008, 11:28 PM
Anybody know the command to convert decimal into hex?
For example 10 into 0x0A
For example 10 into 0x0A
Decimal to Hex?
|
09-21-2008, 11:28 PM
Anybody know the command to convert decimal into hex?
For example 10 into 0x0A
09-22-2008, 12:45 AM
int i=10
out "%i 0x%X" i i
09-22-2008, 01:52 AM
ssimop Wrote:int i=10 But how do you add it to a string? int i=10 str text text = "%i 0x%X" i i //Error in "Macro /35"oMacro: missing ( after function name, or ; after statement.
09-22-2008, 04:41 AM
02-25-2010, 07:25 AM
How do you go from Hex to decimal??
02-25-2010, 07:44 AM
str decimal=0xff
out decimal or str hex="0xff" int decimal=val(hex) More examples str hex.decrypt(8 "ff 70 1e 4b") ;;easiest way to fill str with binary data specified as hex bytes outb hex hex.len for(_i 0 hex.len) out hex[_i] and str s="ABCD" s.encrypt(8 s "" 1) out s |
« Next Oldest | Next Newest »
|