Wednesday, 9 January 2013

Ceil function in VB6

VB Code:
  1. Function Ceiling(n As Double) As Long
  2.     If Not Int(n) = n Then
  3.         Ceiling = Int(n) + 1
  4.     Else
  5.         Ceiling = n
  6.     End If
  7. End Function

5 comments:

  1. This is My Function Working Perfectly
    Public Function Ceiling(MyNum As Double)
    If Round(MyNum, 0) < MyNum Then
    Ceiling = Round(MyNum + 1, 0)
    Else
    Ceiling = Round(MyNum, 0)
    End If
    End Function

    ReplyDelete
  2. Check this website
    http://itcollegeall.blogspot.com
    more information learn many program

    ReplyDelete
  3. Thank you So much that's helpful

    ReplyDelete