Answers for "number_format() expects parameter 1 to be float, string given"

0

number_format() expects parameter 1 to be float, string given

$tot_tapas = float($number_of_persons) * float($tapas);
$tot_tapas = number_format((float)$tot_tapas , 2, '.', '');
Posted by: Guest on August-27-2021

Code answers related to "number_format() expects parameter 1 to be float, string given"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language