I printed integers with format string (like "%6d ") without any problem. But
how to print floating point numbers?
I have to print a 4-byte number. What push into stack? Should I push the
address of number? What is with length of number (4, 8 or 10 bytes)?
The format string I use is following:
db "%6.1f ",0
Thanks
Happy Easter!
You should mention that you are calling "printf". That's critically
important to your question.
All of the floating formats in printf require an 8-byte double. If you
have a 4-byte single, you'll need to convert it to a double and push those
8 bytes.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.