0
Guys below I put the code just to understand what I want
I want the following value 27.588877333333
print only 27
removing the other numbers as could do this with php
<?php
$numero = 27.588877333333;
echo number_format($numero, 0, '', '');
?>
$numero = 27.588877333333; $partes = explode(".", $numero); echo $partes[0];
– user60252
Boy you in front always equal to SKY kkk thanks buddy
– Hemerson Prestes
Thanks bro worked out !
– Hemerson Prestes
echo floor(27.588877333333); returns 27
– user60252
round() - Round a number up or down. Ceil() - Round fractions up. echo floor(27.588877333333); round down
– user60252
Yeah and see that same round() got 28 more worth also got top !
– Hemerson Prestes
by choosing the answer, your question is not correct.
Quero o seguinte que o valor 27.588877333333 imprima apenas 27
echo round(27.588877333333); will 28– user60252
See PHP math functions in http://www.php.net/manual/en/ref.math.php
– user60252