Re: strange question

From: Date: Thu, 21 Dec 2000 17:43:28 +0000
Subject: Re: strange question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31447@lists.php.net to get a copy of this message
well, this is beyond me. I tried both echo (-879376120 + 4294967296) ; echo bcadd( '-879376120' , '4294967296' ) ; and both echoed 3415591176 You should probably file a bug report. If you do so, add all & any relevant info about the machine. At 18:29 21.12. 2000, chchen wrote the following: -------------------------------------------------------------- >The most strange is, i have two machine use the same PHP version php4.03pl1 > >but one is correct, one is incorrect with the same code. I tried the bcadd >with the wrong one, > >it still display wrong number. can't image why this can >happened..............!@%# > >----- Original Message ----- >From: "Cynic" <cynic@mail.cz> >To: "chchen" <s8553105@mail.nchu.edu.tw>; <php-general@lists.php.net> >Sent: Thursday, December 21, 2000 6:28 PM >Subject: Re: [PHP] strange question > > >> use BCmath (arbitrary precision math) functions. these >> numbers are outside the 32bit range your system can >> handle. >> >> At 05:43 21.12. 2000, chchen wrote the following: >> -------------------------------------------------------------- >> >why i >> >echo (-879376120 + 4294967296) >> >in php, >> >it display 1268107527 >> > >> >actually it should be 3415591176 >> > >> >why?....so strange >> > >> >Regards >> >chChen >> ------end of quote------ >> >> >> >> ____________________________________________________________ >> Cynic: >> >> A member of a group of ancient Greek philosophers who taught >> that virtue constitutes happiness and that self control is >> the essential part of virtue. >> >> cynic@mail.cz >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.general (#31447) next »