Showing posts with label numbers in groovy. Show all posts
Showing posts with label numbers in groovy. Show all posts

Tuesday, March 9, 2010

Check if String is Number

String nbrStr = "30239023902390239023902323"
boolean b = nbrStr.isNumber()
assert b == true