Redondear fracciones hacia arriba
Para hacer redondeos hacia arriba sobre números con decimales podemos utilizar la función ceil() de PHP.
float ceil(float $value)
La función recibe el número con decimales y retorna el número recibido redondeado al siguiente entero más alto, por ejemplo:
<?php echo ceil(4.3); // 5 echo ceil(9.999); // 10 echo ceil(-3.14); // -3 ?>
Autor
Escrito por Jose Aguilar - Director ejecutivo y tecnológico en JA Modules. Experto programador PrestaShop y Experto programador WordPress.
I will surely foreward this post to all of my pals! Its very excellent and a very fine read! 🙂
I like this blog it’s a master piece! Glad I discovered this on google.
Hello.This article was extremely remarkable, particularly since I was searching for thoughts on this matter last Monday.
Keep up the superb work , I read few blog posts on this internet site and I believe that your weblog is very interesting and has lots of superb info .
Definitely believe that which you said. Your favourite justification seemed to be on the web the easiest factor to consider of. I say to you, I definitely get annoyed whilst folks consider worries that they plainly do not recognise about. You controlled to hit the nail upon the top and defined out the whole thing with no need side-effects , people could take a signal. Will probably be again to get more. Thanks!
I gotta favorite this internet site it seems handy invaluable
Rattling excellent information can be found on blog .
I cherished up to you will receive performed right here. The sketch is attractive, your authored subject matter stylish. nevertheless, you command get bought an shakiness over that you want be handing over the following. in poor health unquestionably come more before again since precisely the same nearly very continuously within case you defend this increase.