add writing of floats