Knowledgebase:
MathRound
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 21 January 2016 11:17 AM

Syntax

Public Function MathRound(Number As Double, Optional digitNumber As Long) As Variant

This function used to return the number rounded to the nearest specified digit.

Parameters

Key Description 
Number The specified to be rounded,value of type Double.
digitNumber Number of round digits, value of type Long.

Return value

Returns a rounded  value as double

Note:

If this digitNumber Parameter is omitted, then the round function will return an integer value.

Sample

Public Sub main()

AlertMessage MathRound(10.12345,2) 'The Alert Message will reurn 10.12  

End Sub


See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions