Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying a long value to 1 decimal place?!?!?? 1

Status
Not open for further replies.

ftpdoo

Programmer
Aug 9, 2001
202
GB

I have an long value called lngResponse which probably contains a value like: 6.000000 or 312.000000

I wish to display these value to one place after the decimal place to display the following:

6.0
312.0

Could anyone tell me the easiest way to do this in VB?

Thnx in Advance,
Ftpdoo
 
Hi

try this

lngResponse = Format(lngResponse, "###0.0")

Hope this helps.

Regards
LSTAN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top