StringUtils.isNumeric returns true for “” and false for 7.8. This is of course it’s documented behavior, but really not the most convenient for me. Is there something else (ideally in commons.lang) that provides an isActuallyNumeric?
StringUtils.isNumeric returns true for and false for 7.8. This is of course it’s documented
Share
Try
isNumber(String)fromorg.apache.commons.lang.math.NumberUtils.UPDATE –
isNumber(String)is now deprecated. UseisCreatable(String)instead.Thank you eav for pointing it out.