Function to get Float value from preference
Float from given key if exist, defaultValue if not
String key to refer
Float to return if the key doesn't return any value