How to check that a string is parseable to a double? [duplicate]

Apache, as usual, has a good answer from Apache Commons-Lang in the form of
NumberUtils.isCreatable(String).

Handles nulls, no try/catch block required.

Leave a Comment