Implement toString that supports %f.