PHP round, ceil and floor functions

I was working on a script this morning that required me to learn a little bit about PHP functions round, ceil and floor. The script below is just a simple demonstration of exactly what each does.

 

This code returns the following:1.28
round function answer = 1
ceil function answer = 2
floor function answer = 1

Leave a Reply