View Single Post
  #9   Spotlight this post!  
Unread 13-02-2002, 13:17
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Quote:
Originally posted by Manoel
A bit off topic, I'm trying to get my dashboard monitor working , but I haven't programmed in VB for a long time. How do I round the battery voltage to one decimal place?
Assuming your voltage is stored in varVolt, do something like this:

varVolt=(int(varVolt*10+0.5)/10)

Or, if you're just outputting it, do this:
lblVoltage.caption = Format$(varVolt,"##.0")
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...