Answers for "format ‘%f’ expects argument of type ‘float *’, but argument 2 has type ‘double’"

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 "format ‘%f’ expects argument of type ‘float *’, but argument 2 has type ‘double’"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language