Re: Re: bcadd
| From: | Jean-Christian Imbeault | Date: | Fri, 18 Apr 2003 04:00:04 +0000 |
| Subject: | Re: Re: bcadd | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144376@lists.php.net to get a copy of this message | ||
Hugh Danaher wrote:
$TOTAL = preg_replace("/[()]+/"," ", $TOTAL); Kevin, I don't know if this generates a 'string' or a 'number.' If it generates a string, then you are adding a string to a number, and it might cause the bcadd function to fail.Definitely a possibility but according to the docs bcadd() takes strings (and not integers) as input. But maybe the docs are wrong. I would test it but don't have BC math functions compiled in ... Jean-Christian Imbeault