Last comments for ceil()

On 07. Feb 2015 20:48 Mekon wrote:

Watch out when rounding up to zero, PHP gives the answer as negative zero. $returnValue = ceil(-0.5); returns: -0

On 17. Jun 2012 16:17 butzi wrote:

@Ismail: Take a look at the line "your call:". There you can see, what realy is executed. Calculations are not allowed as parameters of functions, sorry, but it is a security issue.

On 03. Jun 2012 09:21 Ismail wrote:

i tried these examples: ceil(5/2); and result was 5 ceil( (5/2) ); and the resutl was 0