We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d6dbc1 commit 84dcb4eCopy full SHA for 84dcb4e
src/diffpy/utils/validators.py
@@ -1,5 +1,8 @@
1
def is_number(string):
2
"""Check if the provided string can be converted to a float.
3
+
4
+ Since integers can be converted to floats, this function will return True for integers as well.
5
+ Hence, we can use this function to check if a string is a number.
6
7
Parameters
8
----------
0 commit comments