On 16 Jan 2001 [EMAIL PROTECTED] wrote: > From: [EMAIL PROTECTED] > Operating system: Linux 2.x, Redhat 6.2 > PHP version: 4.0.3pl1 > PHP Bug Type: PCRE related > Bug description: preg functions interpret { as part of variable interpolation > > The following code does not work properly > > $number = "999.00"; > $precision = 2; > echo preg_replace("/\.0{$precision}/", "", $number); > > it echos 999.00 I know it has nothing to do with the bug, but why don't you just use this: echo floor ($number); Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] --------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]