PDA

View Full Version : Converting negative decimal value to hexadecimal


anilrohom
January 18th, 2007, 11:18 PM
How can i convert negative decimal value(-100) to hexadecimal.

L D[AR2,P#0.0]
January 19th, 2007, 02:35 AM
Can you convert 100 decimal to hex (binary) ? If so then simply find the 2's complement of the number (i.e. invert and add one).

Sergei Troizky
January 19th, 2007, 08:17 AM
Where?
In a PLC program?
On the paper?
In mind?

randylud
January 19th, 2007, 04:35 PM
Ffffffffffffff9c=-100