Validate input as float, fix #1

Using ```if (scanf("%f", &fahrenheit) == 1)``` tests the return value of scanf to determine if a float has been entered (http://stackoverflow.com/a/4072483)