On Sun, Jan 30, 2011 at 8:44 PM, Marc Trudel <mtrudel@xxxxxxxxxx> wrote: > Just out of curiosity, wouldnt it be better to use floor($n) instead of > round($n-0.5)? > Hi Marc, I don't think so, although I could have missed something (I just quick cranked out the example.) The definition I linked to involves rounding (2.5 would round to 3, and 2.4 would round to 2), so I just included the rounding in the equation. Let me know if you see something I botched. Thanks, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com