ValueTypeValidator class¶
This class has two static methods to validate if a given "float" or "int" number is a valid binary or integer number.
Source code in pyorlib/validators/value_type_validator.py
                Functions¶
staticmethod
  
¶
    This method checks if the given float/int number is binary or not.
| PARAMETER | DESCRIPTION | 
|---|---|
| num | float/int number to be checked 
                  
                    TYPE:
                       | 
| RETURNS | DESCRIPTION | 
|---|---|
| bool | True if the given float/int number is binary else False | 
Source code in pyorlib/validators/value_type_validator.py
              
staticmethod
  
¶
    This method checks if the given float/int number is a valid integer or not.
| PARAMETER | DESCRIPTION | 
|---|---|
| num | float/int number to be checked 
                  
                    TYPE:
                       | 
| RETURNS | DESCRIPTION | 
|---|---|
| bool | True if the given float/int number is an integer else False |