Added getfloat function that uses pointers.

Exercise 5-2.