cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

anlongstar
Journeyman III

Hexadecimal conversion

Hexadecimal conversion

In atical/samples/languages/IL/float_instr_IL(Linux)/float_instr_IL.h, some code in the kernel like this:

// l0 = 0.2, 3.5, 4.4, 5.5
"dcl_literal l0, 0x3E4CCCCD, 0x40000000, 0x40600000, 0x408CCCCD         \n"
// l1 = 1.1,-2.2,3000.3,0.0001
"dcl_literal l1, 0x3F8CCCCD, 0xC00CCCCD, 0x453B84CD, 0x38D1B717         \n"
// l2 = 1.2, 3.5, 4.4, 5.5
"dcl_literal l2, 0x3F99999A, 0x40000000, 0x40600000, 0x408CCCCD         \n"

how to do the Hexadecimal conversion? like 5.5 to 0x408CCCCD?

Thank u!

0 Likes
1 Reply

0 Likes