From: Rafael Garcia-Suarez Date: Tue, 13 Apr 2010 09:42:12 +0000 (+0200) Subject: [perl #74198] Typo in perlop(1) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8548cb578e4b4a0b9e3b56af82a8b95a270dc769;p=p5sagit%2Fp5-mst-13.2.git [perl #74198] Typo in perlop(1) reported by rrt@sc3d.org --- diff --git a/pod/perlop.pod b/pod/perlop.pod index ea0b07f..ebe32fb 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -2520,8 +2520,8 @@ so some corners must be cut. For example: printf "%.20g\n", 123456789123456789; # produces 123456789123456784 -Testing for exact equality of floating-point equality or inequality is -not a good idea. Here's a (relatively expensive) work-around to compare +Testing for exact floating-point equality or inequality is not a +good idea. Here's a (relatively expensive) work-around to compare whether two floating-point numbers are equal to a particular number of decimal places. See Knuth, volume II, for a more robust treatment of this topic.