Added methods to write floats