Saving decimal values

I'm confused. Why would you want to store the number in 'val' in the much less efficient form of a string of characters? Keeping numbers as numbers is usually the most efficient way to work with them.