Re: [PHP] Here's my rounding

2012-09-29 Thread Tedd Sperling
On Sep 28, 2012, at 9:27 AM, Jim Giner wrote: > On 9/28/2012 2:11 AM, Simon J Welsh wrote: >> On 28/09/2012, at 6:08 PM, Chris Payne wrote: >> >> I would use something similar to $rounded_number = ceil($test2/1000)*1000; >> --- >> Simon Welsh >> Admin of http://simon.geek.nz/ >> > From my days

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 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 num

Re: [PHP] Here's my rounding

2012-09-27 Thread Simon J Welsh
On 28/09/2012, at 6:08 PM, Chris Payne 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 number was 14