fixing issue #13 with negative integers and floats not being correctly converted