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!

Round Function Problem

Status
Not open for further replies.

v5652

Programmer
Mar 19, 2008
76
IN
I have a problem with Round Function.

e.g. round(32.255,2) = 32.25 actualy it may be 32.26

can anybody has any solution for this..

 
Round is accurate for statistical purposes, but may not suit financial applications. Format should suit in most cases:

Debug.Print Round(19.955, 2)
'Answer: 19.95

Debug.Print Format(19.955, "#.00")
'Answer: 19.96

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top