in Scheme, 3.0 is considered integer as well as real

to_i: test for real before testing for integer