Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25307 invoked from network); 17 Nov 2008 13:46:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2008 13:46:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=igor.feghali@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=igor.feghali@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.26 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: igor.feghali@gmail.com X-Host-Fingerprint: 74.125.92.26 qw-out-2122.google.com Received: from [74.125.92.26] ([74.125.92.26:62427] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/38-17095-8B571294 for ; Mon, 17 Nov 2008 08:46:33 -0500 Received: by qw-out-2122.google.com with SMTP id 8so1115040qwh.59 for ; Mon, 17 Nov 2008 05:46:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=GldRhZy0bMiwaBM/xWXFQ0PCWgp1crNjTuFSLeAWQz0=; b=tmCl+SugjKUoQ+o319x9HaexjwyobhcrXU/f68i/yTun+BHI+uIflXPlszRNXQWCPA dPHHdMzB7tkijCB5gjwyfxCBs2WkW5ugFoFn6CG/YZ4n1H8xcw8BzFrCqLxeHrLKVZw9 qcuVaQsQmX2sfe9XDlFi6zlwKkr56G8O5MmpM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Fz/IO4+bDkbXDDB0YJuwRWFmM6iqsMyeq7QJ7lSjslOlb+Jkk9tHil0KOE/9bRYkhL Ragwlw3GbphoKNrJ3gSAZZs3GSEfzEWVyrUwRgCe6amZJo2GkakGF/7NeZIUnBs9qEJn K1xNCuI5PVnKasvVBSpa9T22TEsGgsNXZqqic= Received: by 10.214.149.5 with SMTP id w5mr2387284qad.350.1226929589391; Mon, 17 Nov 2008 05:46:29 -0800 (PST) Received: by 10.214.113.20 with HTTP; Mon, 17 Nov 2008 05:46:29 -0800 (PST) Message-ID: Date: Mon, 17 Nov 2008 11:46:29 -0200 To: "Ting Chen" Cc: internals@lists.php.net In-Reply-To: <229284780811170522p6b8bfdd5id35875a3f7ba236@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <229284780811170445r46ad09d6tc1c295b4395fd5b2@mail.gmail.com> <229284780811170522p6b8bfdd5id35875a3f7ba236@mail.gmail.com> Subject: Re: [PHP-DEV] a stupid question From: igor.feghali@gmail.com ("Igor Feghali") maybe because "0" evaluating to false is already enough and everything after that would be "forcing" too much. If "0.0" evaluates to false then I would ask, why "0.0E1" doesn't ? What about "0.0E2" ? "0.0E10" ? etc. Just my opinion. regards, Igor. On Mon, Nov 17, 2008 at 11:22 AM, Ting Chen wrote: > i am recently studying Php5 manul. This is one of the examinations in > the book. The answer is "0.0" is true rather than false. I am very > curious about why if the answer is not wrong.