IntroductionThe Math.Round method takes two parameters giving the number to round and the number of digits you want to round at. Imports System.Math
Public Class Utlities
Private Shared Function GetRound(ByVal amount As Double, ByVal digits As Integer) As Double
Return Round(amount, digits)
End Function
End Class
Here the first arguments the value of rounding and second argument is now of digits would round. How to Use Above MethodUtlities.GetRound(args1,args2) Note:If you are going to use the Round Function , you have to import the System.Math namespace in your project.enjoy. |