Writing a float value to a file

I don't have an SD shield. Can you define "doesn't work"? Do you mean "doesn't compile", or "compiles, but doesn't write to the file"?