Negative Hex value complements?

Get help with using AutoHotkey and its commands and hotkeys
Posts: 28
Joined: 01 Mar 2016, 11:35

Negative Hex value complements?

14 May 2017, 19:20

I am working on a few hex conversion functions

I am wondering about AutoHotkey negative hex values.
Is -0xfa the 16's complement of 0xfa or is -0xfa it the 15's complement of 0xfa

I am thinking it is the 15's complement so to convert to positive hex
-0xfa converts to 0xf9 as 15's complement and 0xfa as 16's complement.

Am I correct on this?

My Functions are going to work with string rather then numbers so I may be working with numbers greater then 0xFFFFFFFF (big ints and stuff)
Recent AutoHotkey projects.
AutoHotkey Snippit

Return to “Ask For Help”

Who is online

Users browsing this forum: Hologram, mikeyww, Szbydev and 41 guests