Number
The number.py module provides methods for handling integers and float values.
Is Float Convertible¶
The method is_float_convertible() is designed to check if a given value can be converted to a float, if the conversion is possible it returns a boolean indicating so. Check its implementation below:
Below we have another example where a value is not able to be converted to a float: