Forum Moderators: coopster

Message Too Old, No Replies

numbering help.

         

PokeTech

12:53 am on Nov 12, 2008 (gmt 0)

10+ Year Member



Well I've been using number_format() until I figured out that it rounds up. I just want to simply get the number in front of the decimals.

Ex:
10.6584
I want to get 10

Ex:
10.12
I still want to get 10

Is there anything that will allow me to do this?

Nutter

12:59 am on Nov 12, 2008 (gmt 0)

10+ Year Member



floor(10.6584)
floor(10.12)

PokeTech

1:07 am on Nov 12, 2008 (gmt 0)

10+ Year Member



Thanks for the fast reply! And it did work.