title: How do you round quotients when dividing in nasm?
body: <p>im not sure if m using the wrong data types or the wrong instruction or what but div,idiv,fdiv all seem to give me a 0 for the quotient. And i want to get some decimal number rounded to a couple decimal places. i think im using the correct registers for the division too.</p>
  
  <pre><code>mov ebp, 3          ;ebp = 3(constant) 
  mov eax, edx            ;eax = edx(sum from previous calculation)
  mov ecx,3           ;load upper half of dividend with zero
  div ecx             ;divide double register ecx eax by 3
  
  push eax
  push msg6
  call _printf
  add esp, 8
  </code></pre>
  
  <p>i changed the format in the printf so it displays in decimal format but there are still no numbers being divided it seems like?</p>