View Single Post
  #7   Spotlight this post!  
Unread 05-02-2005, 21:20
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Cannot access "double" values

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.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_