Jump to content

Hex Math


Recommended Posts

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

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

Autoit 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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...