Kevin McKiou added the comment:
Martin,
Oops. Sorry about that. Hey, I even tried it with more decimals. It never
occurred to me it was rounding. I thought it was simply printing a certain
number of decimals.
Hmmm...looking at my C manual...by golly, printf does round.
Thanks,
- Kevin
New submission from Kevin McKiou:
>>> print "price is: %f" % 5.1234567
price is: 5.123457
I was testing the statement about "prints to 6 decimal places". Sure
enough, it printed only 6 decimal places, but it skipped over the 6th
decimal place and printed the 7th