From: Jarkko Hietaniemi Date: Fri, 22 Jun 2001 12:16:41 +0000 (+0000) Subject: The #10792 didn't take, and s/sighni/signi/, as noticed by X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5dc6f17881b619bdebc328d265c5f4aa5fe76263;p=p5sagit%2Fp5-mst-13.2.git The #10792 didn't take, and s/sighni/signi/, as noticed by Philip Newton. p4raw-id: //depot/perl@10821 --- diff --git a/lib/ExtUtils/Constant.pm b/lib/ExtUtils/Constant.pm index 03f42e9..74c95e1 100644 --- a/lib/ExtUtils/Constant.pm +++ b/lib/ExtUtils/Constant.pm @@ -277,7 +277,9 @@ sub assign { return $clause; } -=item return_clause VALUE, TYPE, INDENT, MACRO, DEFAULT, PRE, POST, PRE, POST +=item return_clause + +return_clause VALUE, TYPE, INDENT, MACRO, DEFAULT, PRE, POST, PRE, POST A function to return a suitable C<#ifdef> clause. I defaults to I when not defined. If I is aggregate (eg I expects both diff --git a/lib/Locale/Maketext.pod b/lib/Locale/Maketext.pod index ef5e66e..e629b90 100644 --- a/lib/Locale/Maketext.pod +++ b/lib/Locale/Maketext.pod @@ -110,7 +110,9 @@ These are to do with constructing a language handle: =over -=item $lh = YourProjClass->get_handle( ...langtags... ) || die "lg-handle?"; +=item * + +$lh = YourProjClass->get_handle( ...langtags... ) || die "lg-handle?"; This tries loading classes based on the language-tags you give (like C<("en-US", "sk", "kon", "es-MX", "ja", "i-klingon")>, and for the first class @@ -131,7 +133,9 @@ then if nothing comes of that, we use classes named by YourProjClass->fallback_language_classes(). Then in the (probably quite unlikely) event that that fails, we just return undef. -=item $lh = YourProjClass->get_handleB<()> || die "lg-handle?"; +=item * + +$lh = YourProjClass->get_handleB<()> || die "lg-handle?"; When C is called with an empty parameter list, magic happens: @@ -171,13 +175,17 @@ file, you might consider something like this in your project class: return $lh; } -=item $lh = YourProjClass::langname->new(); +=item * + +$lh = YourProjClass::langname->new(); This constructs a language handle. You usually B call this directly, but instead let C find a language class to C and to then call ->new on. -=item $lh->init(); +=item * + +$lh->init(); This is called by ->new to initialize newly-constructed language handles. If you define an init method in your class, remember that it's usually @@ -185,7 +193,9 @@ considered a good idea to call $lh->SUPER::init in it (presumably at the beginning), so that all classes get a chance to initialize a new object however they see fit. -=item YourProjClass->fallback_languages() +=item * + +YourProjClass->fallback_languages() C appends the return value of this to the end of whatever list of languages you pass C. Unless @@ -201,7 +211,9 @@ C will always manage to construct a language handle (assuming your language classes are in an appropriate @INC directory). Or you can use the next method: -=item YourProjClass->fallback_language_classes() +=item * + +YourProjClass->fallback_language_classes() C appends the return value of this to the end of the list of classes it will try using. Unless diff --git a/lib/Math/BigFloat.pm b/lib/Math/BigFloat.pm index 04622ee..d08464f 100644 --- a/lib/Math/BigFloat.pm +++ b/lib/Math/BigFloat.pm @@ -1227,27 +1227,40 @@ supplied to the operation after the I: =over 2 -=item ffround ( +$scale ) rounds to the $scale'th place left from the '.', counting from the dot. The first digit is numbered 1. +=item ffround ( +$scale ) -=item ffround ( -$scale ) rounds to the $scale'th place right from the '.', counting from the dot +rounds to the $scale'th place left from the '.', counting from the dot. +The first digit is numbered 1. -=item ffround ( 0 ) rounds to an integer +=item ffround ( -$scale ) -=item fround ( +$scale ) preserves accuracy to $scale digits from the left (aka significant digits) and paddes the rest with zeros. If the number is between 1 and -1, the significant digits count from the first non-zero after the '.' +rounds to the $scale'th place right from the '.', counting from the dot -=item fround ( -$scale ) and fround ( 0 ) are a no-ops +=item ffround ( 0 ) + +rounds to an integer + +=item fround ( +$scale ) + +preserves accuracy to $scale digits from the left (aka significant +digits) and pads the rest with zeros. If the number is between 1 and +-1, the significant digits count from the first non-zero after the '.' + +=item fround ( -$scale ) and fround ( 0 ) + +are a no-ops =back -All rounding functions take as a second parameter a rounding mode from one of -the following: 'even', 'odd', '+inf', '-inf', 'zero' or 'trunc'. +All rounding functions take as a second parameter a rounding mode from +one of the following: 'even', 'odd', '+inf', '-inf', 'zero' or 'trunc'. The default rounding mode is 'even'. By using -C<< Math::BigFloat::round_mode($rnd_mode); >> you can get and set the default -mode for subsequent rounding. The usage of C<$Math::BigFloat::$rnd_mode> is -no longer supported. - The second parameter to the round functions then overrides the default -temporarily. +C<< Math::BigFloat::round_mode($rnd_mode); >> you can get and set the +default mode for subsequent rounding. The usage of +C<$Math::BigFloat::$rnd_mode> is no longer supported. +The second parameter to the round functions then overrides the default +temporarily. The C<< as_number() >> function returns a BigInt from a Math::BigFloat. It uses 'trunc' as rounding mode to make it equivalent to: diff --git a/lib/Math/BigInt.pm b/lib/Math/BigInt.pm index 53d5b11..7b58034 100644 --- a/lib/Math/BigInt.pm +++ b/lib/Math/BigInt.pm @@ -2269,11 +2269,19 @@ L. =over 2 -=item bfround ( +$scale ) rounds to the $scale'th place left from the '.' +=item bfround ( +$scale ) -=item bround ( +$scale ) preserves accuracy to $scale sighnificant digits counted from the left and paddes the number with zeros +rounds to the $scale'th place left from the '.' -=item bround ( -$scale ) preserves accuracy to $scale significant digits counted from the right and paddes the number with zeros. +=item bround ( +$scale ) + +preserves accuracy to $scale significant digits counted from the left +and pads the number with zeros + +=item bround ( -$scale ) + +preserves accuracy to $scale significant digits counted from the right +and pads the number with zeros. =back