I have a problem, after assigning a variable a float value as below,
4.85, after multiplying by 100, 48500 and when I will print out the value of 00000000484.
$variavel = 4.85;
$valor = $variavel * 100;
echo sprintf("%011d",$valor);
asked by
30.06.2014 / 14:02