[PHP] Thank you all for your help

2012-01-15 Thread Chris Payne
Hi there, A big thank you to all of you who took time to help me with my numeric problem from earlier, it's been a huge help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 9:24 PM, Robert Williams wrote: On Jan 15, 2012, at 19:00, "Simon J Welsh"mailto:si...@welsh.co.nz>> wrote: On 16/01/2012, at 2:48 PM, Chris Payne wrote: "If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always rounded up to the next $100

Re: [PHP] Numeric help needed

2012-01-15 Thread Robert Williams
On Jan 15, 2012, at 19:00, "Simon J Welsh" mailto:si...@welsh.co.nz>> wrote: On 16/01/2012, at 2:48 PM, Chris Payne wrote: "If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always rounded up to the next $1000." The round() function only rounds decimal va

Re: [PHP] Numeric help needed

2012-01-15 Thread Curtis Maurand
On 1/15/2012 8:48 PM, Chris Payne wrote: Hi Jason, I've tried lots of different things, including: echo "" . round(68500, 1000) . " ROUNDED"; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): "If the loan amount is $68500.00, the insurace will

Re: [PHP] Numeric help needed

2012-01-15 Thread Simon J Welsh
On 16/01/2012, at 2:48 PM, Chris Payne wrote: > Hi Jason, > > I've tried lots of different things, including: > > echo "" . round(68500, 1000) . " ROUNDED"; > > thinking that might be it, but i'm stumped > > This is the example I was given (And have to go by): > > "If the loan amount is $6850

Re: [PHP] Numeric help needed

2012-01-15 Thread Chris Payne
Hi Jason, I've tried lots of different things, including: echo "" . round(68500, 1000) . " ROUNDED"; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): "If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is alway

Re: [PHP] Numeric help needed

2012-01-15 Thread Jason Pruim
Sent from my iPhone On Jan 15, 2012, at 8:25 PM, "Christopher J Payne" wrote: > Hi everyone, > > > > I am having a hard time with a numerical problem. > > > > I need to round some numbers up and I've tried $round($number) and it > doesn't work so I'm misunderstanding something. > > >

[PHP] Numeric help needed

2012-01-15 Thread Christopher J Payne
Hi everyone, I am having a hard time with a numerical problem. I need to round some numbers up and I've tried $round($number) and it doesn't work so I'm misunderstanding something. For example, if a user inputs 685000 I need it to round up to 69 or if they input 149560 I need it to

[PHP] Measuring CPU time

2012-01-15 Thread Tim Streater
I haven't found a function to allow me to see elapsed CPU time to date in a function. Am I right in thinking none such exists? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php://input

2012-01-15 Thread Frank Arensmeier
15 jan 2012 kl. 06.18 skrev Adam Tong: > Hi, > > I am trying to read variables from input method. > I am using this tuorial: > http://www.lornajane.net/posts/2008/Accessing-Incoming-PUT-Data-from-PHP. > Here is my code: > if($_SERVER['REQUEST_METHOD'] == 'GET') { >echo "this is a get request