php3-list | 199908
Date: 09/01/99
- Next message: Duncan Kinder: "[PHP3] PHP Will Not Work"
- Previous message: Teodor Cimpoesu: "Re: [PHP3] Global function doesn't keep its value"
- In reply to: Chris Boget: "[PHP3] Values greater than 2billion"
- Next in thread: Richard Lynch: "Re: [PHP3] Values greater than 2billion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chris Boget wrote:
>
> I'm working with values greater than 2 billion in
> several of my apps. Most often, this comes from
> allowing the user to input monetary values then
> converting that value to a specific currency value
> using the currency's exchange rate. When I do this
> calculation, I get scientific values returned (ie
> 6.3492E+09). When I use the variables with those
> values in them for comparison, the comparison
> (unsurprisingly?) fails.
> How can I compare generated values over 2billion?
>
try to cast them explicitly to double.
-- CIMPOESU Teodor, Web Programmer@ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo <email protected>,+(401)-330.47.28
official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/
-- 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: Duncan Kinder: "[PHP3] PHP Will Not Work"
- Previous message: Teodor Cimpoesu: "Re: [PHP3] Global function doesn't keep its value"
- In reply to: Chris Boget: "[PHP3] Values greater than 2billion"
- Next in thread: Richard Lynch: "Re: [PHP3] Values greater than 2billion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

