Browse
 
Tools
Rss Categories

Basic Concepts

1 Negative numbers representation in hex

The hexadecimal value of a negative decimal number can be obtained starting from the binary value of that decimal number's absolute value. The binary value needs to be logically inverted and then 1 needs to be added to that. The result (converted to hex)…

2 Fractional numbers representation using the 16.16 format (FIXED variables)

In TML, fractional numbers (usually stored in 32 bits fixed variables) are represented (in hex) using the "16.16" format. According to this format, to get the hex value of a fractional number, the first step is to multiply the fractional number with 65536.…