12-07-2010 08:35 AM
Hi All,
I am looking for a function which has to convert the fractional number to hex value and Negative fractional value to hex value.
Suppose if I have 0.33 fractional number I want to represent that in hex? The same way for -0.33?
Can anyone help me on this?
Regards,
Bharathi T
12-07-2010 08:41 AM - edited 12-07-2010 08:41 AM
A simple Type Cast will do that, and you can set the string to Hex display mode so you can see the "value" in hex. It does not matter if the number is positive or negative.
You can learn more about how numbers are stored by reading this: http://en.wikipedia.org/wiki/IEEE_754-2008