add writeDouble(float d)