The utilities
module¶
A module which contains various utility methods for handling strings and floats.
-
utilities.
is_number
(s)[source]¶ Test a string to see if it is a number.
Parameters: s (string) – string which is being tested Returns: True
ifs
is a number, andFalse
otherwiseReturn type: boolean Note
This method allows “d” and “D” as an exponent (i.e. for Fortran style numbers).