develooper Front page | perl.perl5.porters | Postings from April 2008


Thread Next
Jarkko Hietaniemi
April 8, 2008 17:38
Message ID:
Change 33650 by rgs@scipion on 2008/04/06 14:53:02

	Subject: [PATCH] perlfunc.pod: atan2(0,0) returns 0, not undef
	From: Paul Fenwick <>
	Date: Sun, 06 Apr 2008 11:28:27 +1000
	Message-ID: <>

+Note that atan2(0, 0) is not well-defined, however the Perl
+implmentation returns C<0> for this value.

No... the Perl implementation of atan2() returns whatever the underlying
math library returns for atan2().  And that varies.  atan2(0,0) can
return at least zero or NaN(Q).

Either change Perl to always return zero, or keep the correct documentation.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About