Visual Basic
Web Scripting
Active Server Page
Java


Home

Articles

Code Snippets

Links
Books

Mailing List
Receive free code snippets and notices when this site is updated.

Email

Feedback

 

Python Code Snippets

Determining if a string contains a number

This function returns true if the value passed contains a number.

def isnumeric(x):
	try:
		float(x)
	except ValueError:
		return 0
	else:
		return 1

Tell a friend about this page