improve and examples for Float.parse/1 and String.to_float

fixes issue #2869
This raises an argument error because `String.to_float` does not expect a function. What I meant with my suggestion was to create a function, call it and have the returned result passed to `String.to_float`.