onestcoder Posted May 18, 2006 Share Posted May 18, 2006 ok i see this: $result = Hex(1033, 4) ;returns "0409" but i'm not sure what this has to do with what I need done. THis is my situation: $X = 147000 <-- a hex amount $y = 1C6F530 <-- a hex amount I need to figure out how to subtract 2 hex amount to equal the hex difference. $a_hex = $x - $y Need a website: http://www.iconixmarketing.com Link to comment Share on other sites More sharing options...
Lazycat Posted May 18, 2006 Share Posted May 18, 2006 ok i see this:$result = Hex(1033, 4) ;returns "0409"but i'm not sure what this has to do with what I need done.THis is my situation:$X = 147000 <-- a hex amount$y = 1C6F530 <-- a hex amountI need to figure out how to subtract 2 hex amount to equal the hex difference.$a_hex = $x - $yAutoit interpret hex string as number if this begin with "0x". You can just concatenate it with 0x and then substract as regular number:$X = "0x" & "147000"$y = "0x" & "1C6F530"$a_hex = $x - $y Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
onestcoder Posted May 18, 2006 Author Share Posted May 18, 2006 ok great so i don't need special function or anything Need a website: http://www.iconixmarketing.com 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