We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84dcb4e commit f8b1c41Copy full SHA for f8b1c41
src/diffpy/utils/validators.py
@@ -1,6 +1,6 @@
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
0 commit comments