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

[PATCH] perlfunc.pod: atan2(0,0) returns 0, not undef

Thread Next
Paul Fenwick
April 5, 2008 18:28
[PATCH] perlfunc.pod: atan2(0,0) returns 0, not undef
Message ID:
G'day p5p,

The current perlfunc documentation states correctly that atan2(0,0) is not 
well defined, which implies to the reader that Perl returns undef for this 
point.  It doesn't, it returns 0, and provides no warning that such 
foolishness has been entered into.

The attached patch documents that atan2(0,0) does actually return 0.

I'd also like to take this opportunity to nudge regarding my older patch to 
shutdown[1], which I believe is correct but unapplied.




Paul Fenwick <> |
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681

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