Re: Numeric help needed
| From: | Jason Pruim | Date: | Mon, 16 Jan 2012 01:41:51 +0000 |
| Subject: | Re: Numeric help needed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316301@lists.php.net to get a copy of this message | ||
Sent from my iPhone
On Jan 15, 2012, at 8:25 PM, "Christopher J Payne" <oxygenet32@gmail.com> 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.
>
>
>
> For example, if a user inputs 685000 I need it to round up to 690000 or if
> they input 149560 I need it to round up to 150000. What is the correct way
> to do this as everything I have tried doesn't seem to affect the user
> inputted figure at all.
>
>
>
> Anyway help would REALLY be appreciated, I'm sure it's really simple but for
> the life of me I'm stumped on why it's not working.
>
Maybe it's just a typo in your email but you put a $ infront of round() try removing that and
see if it helps. If not are there any error messages that are showing up?
>