develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #98256] [PATCH] Add POD for bsgn() method.

Thread Previous
From:
perlbug-followup
Date:
September 1, 2011 13:00
Subject:
[perl #98256] [PATCH] Add POD for bsgn() method.
Message ID:
rt-3.6.HEAD-31297-1314907210-1709.98256-75-0@perl.org
# New Ticket Created by  (Peter J. Acklam) 
# Please include the string:  [perl #98256]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=98256 >


Add POD for the bsgn() method. This stops Pod::Coverage (and possibly
users) from complaining about missing documentation.
---
 dist/Math-BigInt/lib/Math/BigInt.pm |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dist/Math-BigInt/lib/Math/BigInt.pm b/dist/Math-BigInt/lib/Math/BigInt.pm
index 3da16de..6921fa9 100644
--- a/dist/Math-BigInt/lib/Math/BigInt.pm
+++ b/dist/Math-BigInt/lib/Math/BigInt.pm
@@ -3861,6 +3861,13 @@ Set the number to its absolute value, e.g. change the sign from '-' to '+'
 and from '-inf' to '+inf', respectively. Does nothing for NaN or positive
 numbers.
 
+=head2 bsgn()
+
+	$x->bsgn();
+
+Signum function. Set the number to -1, 0, or 1, depending on whether the
+number is negative, zero, or positive, respectivly. Does not modify NaNs.
+
 =head2 bnorm()
 
 	$x->bnorm();			# normalize (no-op)
-- 
1.7.5.1


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About