<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can bitcast it to an integer of the same size and print that, I believe. APFloat::bitcastToAPInt().<div><br></div><div>-Jim</div><div><br><div><div>On Mar 4, 2012, at 11:56 PM, Sirish Pande <<a href="mailto:spande@codeaurora.org">spande@codeaurora.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi, <br>
    <br>
    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). <br>
    <br>
    Without writing my own routine, how do I get to print the
    hexadecimal representation for a floating point value?<br>
    <br>
    Sirish<br>
    <span style="color: rgb(0, 0, 0); font-family: 'Times New Roman';
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: -webkit-auto; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 102); font-size: medium; display:
      inline !important; float: none; "></span>
    <pre class="moz-signature" cols="72">-- 
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum</pre>
  </div>

_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></body></html>