support 1: digit flag:+-, 2: calculate, 3: double type interger