[LLVMdev] printing hex format for floating point number

Sirish Pande spande at codeaurora.org
Sun Mar 4 23:56:29 PST 2012


Hi,

I am trying to print a hex value ( 4111999A for 9.1) for a corresponding 
floating point number.  The routine convertToHexString in APFFloat class 
only prints in C99 Floating point hexagondecimal constant (eg 1.e00000p3).

Without writing my own routine, how do I get to print the hexadecimal 
representation for a floating point value?

Sirish

-- 
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120305/6dae85a2/attachment.html>


More information about the llvm-dev mailing list