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" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 1:14 PM
Subject: Re: [PHP] Find Next Integer


> if ($sign = ">")
>     $number++;
> else
>     $number--;
>
> ???
> ----- Original Message -----
> From: "Stephen" <[EMAIL PROTECTED]>
> To: "PHP List" <[EMAIL PROTECTED]>
> 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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to