...

View Full Version : round number...



NinjaTurtle
08-02-2002, 04:53 AM
dear,

i face a problem... when we round a decimal number(CInt), it get diiferrent that i want...
e.g
0.5 i get 0
1.5 i get 2
2.5 i get 2
3.5 i get 4
.
.

But what i want is
0.5 should be 1
1.5 should be 2
2.5 should be 3
3.5 should be 4
....

glenngv
08-02-2002, 05:47 AM
Round(Number, NumDecimalPlaces)

where NumDecimalPlaces is optional, if not specified, the number is rounded off to an integer.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum