# Re: [PHP] Find Next Integer

```Ah, yes, thanks!
```
```
----- Original Message -----
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:08 PM
Subject: Re: [PHP] Find Next Integer

> Well that case then
> if (\$sign = ">")
>      ceil(\$number);
> else
>      floor(\$number);
>
> Is that nearer to what you mean?
>
> Andrew
> ----- Original Message -----
> From: "Stephen" <[EMAIL PROTECTED]>
> To: "Andrew Brampton" <[EMAIL PROTECTED]>
> Cc: "PHP List" <[EMAIL PROTECTED]>
> Sent: Monday, December 09, 2002 8:19 PM
> Subject: Re: [PHP] Find Next Integer
>
>
> > 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

```