Jun 12, 2008 #1 v5652 Programmer Joined Mar 19, 2008 Messages 76 Location 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 Joined Aug 27, 2005 Messages 9,382 Location US http://www.developerfusion.co.uk/show/4252/ Upvote 0 Downvote
Jun 12, 2008 #3 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location 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 Joined Aug 27, 2005 Messages 9,382 Location 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