Article View: comp.lang.perl.misc
Article #291Re: [HLP] Meaning of 'inf' ???
From: ts
Date: Fri, 07 Jan 2000 00:00
Date: Fri, 07 Jan 2000 00:00
23 lines
1364 bytes
1364 bytes
>>>>> "L" == Laurent MARTIN <laurent@gide.net> writes:
L> my $s1="information";
L> my $s2="dummy";
L> printf("[%d]:%s\n",$s1,(($s1>=1000) ? "true" : "false"));
L> printf("[%d]:%s\n",$s2,(($s2>=1000) ? "true" : "false"));
C'est un cas connu, regardez (� tout hasard :-)) les sp�cifications de
IEEE-754
moulon% perl
my $s1="-information";
my $s2="dummy";
printf("[%d]:%s\n",$s1,(($s1>=1000) ? "true" : "false"));
printf("[%d]:%s\n",$s2,(($s2>=1000) ? "true" : "false"));
^D
[-2147483648]:false
[0]:false
moulon%
--
Guy Decoux
Technical Details
Message-ID:
<rfchfgqmmel.fsf@moulon.moulon.inra.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3874AF27.15D98503@gide.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 112333,cd2e8bd3f7e1a578 X-Google-Attributes: gid112333,public X-Google-Thread: fa0ae,cd2e8bd3f7e1a578 X-Google-Attributes: gidfa0ae,public From: ts <decoux@moulon.inra.fr> Subject: Re: [HLP] Meaning of 'inf' ??? Date: 2000/01/07 Message-ID: <rfchfgqmmel.fsf@moulon.moulon.inra.fr> X-Deja-AN: 569445574 Content-Transfer-Encoding: 8bit References: <3874AF27.15D98503@gide.net> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.inra.fr X-Trace: saphir.jouy.inra.fr 947226152 3923 192.93.96.1 (7 Jan 2000 06:22:32 GMT) Organization: INRA Mime-Version: 1.0 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4 NNTP-Posting-Date: 7 Jan 2000 06:22:32 GMT Newsgroups: comp.lang.perl.misc,fr.comp.lang.perl