Juggler_IN
Active Member
- Joined
- Nov 19, 2014
- Messages
- 358
- Office Version
- 2003 or older
- Platform
- Windows
While I have been able to code a function for Asymmetric Rounding "Rounding-Half-Up" (code attached). But, I am struggling with Asymmetric Rounding "Rounding-Half-Down" method.
The concept of Asymmetric Rounding "Rounding-Half-Down" can be referenced at:
Code:
Public Function RoundHalfUpAsym( _
ByVal myNum As Double, _
ByVal myFac As Double) As Double
RoundHalfUpAsym = Int(myNum * CDec(10# ^ myFac) + 0.5) / CDec(10# ^ myFac)
End Function
The concept of Asymmetric Rounding "Rounding-Half-Down" can be referenced at:
HTML:
https://www.eetimes.com/document.asp?doc_id=1274515#A4