I'm writing a calculator demo. The calculator takes user inputs (String) and do some calculation. The first step is to parse strings to double.

I'm using `NumberUtils.isParsable()` and `Double.parseDouble()`. However, I'd like to limit user input so that the double number does not overflow. It seems that `parseDouble()` only checks if the string is a number. I didn't find any method that checks the string's value.

I wonder what is the best way to do so.