Jump to content

[SOLVED] Ceil for floats...


rarebit

Recommended Posts

if it was 1.49, then it would round down, not up, same for 1.01... I used to add 0.5, but if it is 1.0 then php round does that up also, if I remember correctly certain other languages wouldn't in that instance (i'm not mentioning a language 'cos i'm partial to my head!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.