Wassup Jose Weblog nonsense at its best!

29May/081

IsReallyCloseToZero?

' Purpose     : Checks if a field equals 0
'           In: aField, any patient field that needs to be verified
'          Out: Boolean Value - True/False
 Public Function IsZero(aField) As Boolean
    If (IsNumeric(aField)) Then
        If (Abs(CDbl(aField)) < 0.0000000001) Then
            IsZero = True
        Else
            IsZero = False
        End If
    Else
        IsZero = False
    End If
 End Function
Filed under: Blog Leave a comment
Comments (1) Trackbacks (0)
  1. Nice. ‘Nuf said.


Leave a comment


No trackbacks yet.