Re: Strange printf

From: Date: Wed, 18 Jul 2001 12:01:25 +0000
Subject: Re: Strange printf
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60212@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: > > I have noticed that PHP printf threats non-decimal formats as signed. This > is pretty non-standard, since C printf, for example, has all non-decimal > formats as ungined, and so does Perl. The questions are: > > 1. What was the reason for this strange deviation from other languages? > 2. Does anybody uses this feature and will someone object if it is > returned to the thing the rest of languages having printf do? > IMHO, I think this is an artifact of PHP only supporting _signed_ integers. Refer to http://www.php.net/manual/en/language.types.integer.php Sincerely, Lars Povlsen Filanet Europe A/S

« previous php.dev (#60212) next »