convert numbers to float before passing them to number_format