Check number valid or not, need to consider integer, float, scientific