Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33834 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26932 invoked by uid 1010); 7 Dec 2007 16:07:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26896 invoked from network); 7 Dec 2007 16:07:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2007 16:07:15 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:34570] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/60-16679-77A69574 for ; Fri, 07 Dec 2007 10:44:56 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id lB7FipH8003276; Fri, 7 Dec 2007 16:44:51 +0100 Date: Fri, 7 Dec 2007 16:44:53 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Nathan Rixham cc: internals@lists.php.net In-Reply-To: <01.E6.00959.D3E59574@pb1.pair.com> Message-ID: References: <01.E6.00959.D3E59574@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Thoughts on Feature Request - Arithmetic From: derick@php.net (Derick Rethans) On Fri, 7 Dec 2007, Nathan Rixham wrote: > In-Built PHP Functions for parsing of basic arithmetic and if possible > fraction to decimal and decimal to fraction > > $arithmetic_string = "3*5"; > echo arith($arithmetic_string); // returns float 15 What's wrong with eval?