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")