Re: Find Next Integer
| From: | Stephen | Date: | Mon, 09 Dec 2002 20:19:10 +0000 |
| Subject: | Re: Find Next Integer | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127548@lists.php.net to get a copy of this message | ||
But the problem is, the user may type in a decimal.. I guess I could round
then add or subtract.. Would that work too?
----- Original Message -----
From: "Andrew Brampton" <andrew@bramp.freeserve.co.uk>
To: "Stephen" <webmaster@melchior.us>
Sent: Monday, December 09, 2002 1:14 PM
Subject: Re: [PHP] Find Next Integer
> if ($sign = ">")
> $number++;
> else
> $number--;
>
> ???
> ----- Original Message -----
> From: "Stephen" <webmaster@melchior.us>
> To: "PHP List" <php-general@lists.php.net>
> Sent: Monday, December 09, 2002 5:05 PM
> Subject: [PHP] Find Next Integer
>
>
> > I have yet another math question. How could you find the next integer of
a
> > number specified? Then how could you tell it to go up or down depending
on
> > if the greater then or less tehn sign was chosen by the user?
> >
> > Thanks,
> > Stephen Craton
> > http://www.melchior.us
> >
> > "What is a dreamer that cannot persevere?" --
> > http://www.melchior.us
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>