Removed wrong conversion to long from functions when output is floating
point