Re: [PHP] Here's my rounding

2012-09-29 Thread Tedd Sperling
On Sep 28, 2012, at 9:27 AM, Jim Giner jim.gi...@albanyhandball.com wrote: On 9/28/2012 2:11 AM, Simon J Welsh wrote: On 28/09/2012, at 6:08 PM, Chris Payne oxygene...@gmail.com wrote: I would use something similar to $rounded_number = ceil($test2/1000)*1000; --- Simon Welsh Admin of

Re: [PHP] Here's my rounding

2012-09-28 Thread Simon J Welsh
On 28/09/2012, at 6:08 PM, Chris Payne oxygene...@gmail.com wrote: $test2 = '253177'; echo $tes2 . rounded to: ; $rounded_number = round($test2,-3); echo $rounded_number; Is it SUPPOSED to happy a number is sent to this little system and it's SUPPOSED to round the number up. So if the

Re: [PHP] Here's my rounding

2012-09-28 Thread Jim Giner
On 9/28/2012 2:11 AM, Simon J Welsh wrote: On 28/09/2012, at 6:08 PM, Chris Payne oxygene...@gmail.com wrote: $test2 = '253177'; echo $tes2 . rounded to: ; $rounded_number = round($test2,-3); echo $rounded_number; Is it SUPPOSED to happy a number is sent to this little system and it's