View Single Post
  #14   Spotlight this post!  
Unread 29-01-2007, 17:27
htwiz2002's Avatar
htwiz2002 htwiz2002 is offline
Htwizard
AKA: Anthony Takata Bawahawba
#1290
Team Role: Engineer
 
Join Date: Jan 2004
Location: Chandler, AZ
Posts: 23
htwiz2002 will become famous soon enough
Re: Reading battery voltage in software

Quote:
Originally Posted by dhoizner View Post
The only problem that I see with that is, if your voltage is let's say 8.004, I believe that the way you are printing the variables would print 8.4.

If I recall correctly %03d forces three digits to be printed, which using the above example, would display 8.004.
Alright! I'll try it and see what happens.
Thank you very much!
__________________
TsAuKpAeTrA (Anthony)