Quote:
|
Originally Posted by Mike Betts
OK, let's be clear here. "printf" is not a C function. C does not define any I/O. It is written by you.
Now, IFI, Keven Watson and others have been gracious in providing you with a couple of examples as to how to accomplish this. You have the source code for whichever printf you are trying to use. If you feel the (IMHO: insane, stupid and ignorant) need to use a float or double, change printf to suit your own needs.
Mike
Post Script: Sorry for the rant but this stuff is getting really tiresome...
|
With all due respect, take a breath, Mike. The original poster observed a problem, that:
Quote:
|
Originally Posted by chantilly_team
we cannot print float or doubles through printf()
|
Mark McLeod and I confirmed that you can't do this with the I/O libraries provided with the C18 compiler. Mark went so far as to suggest a simple solution for being able to output floating-point numbers. Nobody was complaining. Nobody wanted to argue what abilities are inherent to C, or what actually comes from libraries. Nobody wanted to rehash the "INTEGERS FOREVER WOOO!!!1" discussion. The question has been answered... there's no need to rant. If people asking questions has become tiresome for you, maybe you need a break from CD or something. Making newbies feel dumb is pointless.