This topic is locked

How to truncate number to 2 decimal places

10/31/2008 4:58:51 AM
PHPRunner General questions
L
Lisa2006 author

Hi Forum,
I need to truncate a number to 2 decimal places.
i.e. if number = 125.9456, i need the end result to be 125.94 (not 125.95).
Not sure how to do this. Any help would be appreciated.
Lisa

S
swanside 11/1/2008

Did you see the private message I sent you about the Math.round?