Jun 12, 2008 #1 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..
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..
Jun 12, 2008 #2 MajP Technical User Aug 27, 2005 9,382 US http://www.developerfusion.co.uk/show/4252/ Upvote 0 Downvote
Jun 12, 2008 #3 Remou Technical User Sep 30, 2002 13,030 BE 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 Upvote 0 Downvote
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
Jun 12, 2008 #4 MajP Technical User Aug 27, 2005 9,382 US might want to look at Bankers Rounding bankers rounding functions http://support.microsoft.com/kb/196652 Upvote 0 Downvote
might want to look at Bankers Rounding bankers rounding functions http://support.microsoft.com/kb/196652