an easy one

almubarmeg

Newcomer
Joined
May 5, 2003
Messages
1
Hello, every one

i want to know how can i approximate the result of a time to be two digits

for exampple
time 1= 3.98888888
i want it 3.99

with two digits


thanks
 
Visual Basic:
Dim dblNumber As Double = 3.98888888

MessageBox.Show(Format(dblNumber, "0.00"))
 
Back
Top