title: How to print float number in SASM?
body: <p>I am using sasm ide. My question is how to print a float number. This program executes successfully but didn't display any number. My code is given below:</p>
  
  <pre><code>%include "io.inc"
  
  section .data
  val: dq a123.45
  
  section .bss
  res:resq 1
  section .text
  global CMAIN
  CMAIN:
      mov ebp, esp; for correct debugging
      ;write your code here
     fld qword[val]
   fsqrt
     fst qword[res]
  
  
       xor eax, eax
      ret 
  </code></pre>