Knowledgebase:
MathCeil
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 11 July 2018 11:39 AM

Syntax

Public Function MathCeil(Number As Double) As Integer

This function is used to return the smallest integer greater than or equal to the given number.

Parameters

Key Description 
Number Value that wants to get the ceil for it, a value of type Double.

Return value

Returns the smallest integer greater than or equal to given number.

Sample

Public Sub main()

  AlertMessage MathCeil (1.1) ‘will return 2

  AlertMessage MathCeil (1.8)  ‘will return 2

  AlertMessage MathCeil (-1.1) ‘will return 1

  AlertMessage MathCeil (-1.8) ‘will return 1

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