php3-list | 199908
Date: 08/30/99
- Next message: Joshua L Bowser: "[PHP3] Reading From Files"
- Previous message: Geocrawler.com: "[PHP3] Running php3-Skripts out of JavaScript generated Code"
- Next in thread: Teodor Cimpoesu: "Re: [PHP3] Reg exp?"
- Reply: Teodor Cimpoesu: "Re: [PHP3] Reg exp?"
- Reply: CeCe: "Re: [PHP3] Reg exp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> $num = '40.123498710';
> number_format($num, 2);
If I have 39.99511235 it rounds it up to 40.
How do I just drop the extra numbers, but not affect the actual value?
Thanx
----- Original Message -----
From: billzeller <billzeller <email protected>>
To: NHB Internet Services <dbruce <email protected>>
Sent: Monday, August 30, 1999 6:26 PM
Subject: Re: [PHP3] Reg exp
> ----- Original Message -----
> From: NHB Internet Services <dbruce <email protected>>
> To: PHP List <php3 <email protected>>
> Sent: Monday, August 30, 1999 6:19 PM
> Subject: [PHP3] Reg exp?
>
>
> > Dumb question:
> >
> > With a number, 40.123498710
> >
> > How do I get just 40.12?
> >
> > Thank you,
> >
> > Derek
> >
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> > To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> > To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin <email protected>
> >
>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joshua L Bowser: "[PHP3] Reading From Files"
- Previous message: Geocrawler.com: "[PHP3] Running php3-Skripts out of JavaScript generated Code"
- Next in thread: Teodor Cimpoesu: "Re: [PHP3] Reg exp?"
- Reply: Teodor Cimpoesu: "Re: [PHP3] Reg exp?"
- Reply: CeCe: "Re: [PHP3] Reg exp?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

