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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal Data Type Conversion

Status
Not open for further replies.

polash

Programmer
Mar 28, 2001
13
SG
I want to convert 23.43535353 to 23.44 like this in VB6.
Can any body help me in this regards.

Thanks in advance.

Polash
 
Use the ROUND function...

round(number [,decimal_places])

so...

round(23.43535353,2) returns 23.44


Paul
 
But be aware that the Round function does financial rounding rather than mathematical rounding
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top