merge IntegralState and FloatState into NumberState