Fix float and double parsing