I have a float that outputs as
float 1.5
I need to output as
float 1.50 or as a decimal, this give me a string.
$delivery_cost = number_format((float)$deliveryCharge, 2);
I have a float that outputs as
float 1.5
I need to output as
float 1.50 or as a decimal, this give me a string.
$delivery_cost = number_format((float)$deliveryCharge, 2);