fixing read/write single precision float