X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbignum.pm;h=79fb685c0b68b8027a1c181e31bb55e7c9a6d4af;hb=9b5be9b5aa498a302ab752a0d1cdb335a620ede2;hp=951bf950411409ac8c9b187fe2ccbe2ec71078c8;hpb=233f7bc03a8f0557d08657ec772040b570b403cd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/bignum.pm b/lib/bignum.pm index 951bf95..79fb685 100644 --- a/lib/bignum.pm +++ b/lib/bignum.pm @@ -218,13 +218,13 @@ You can see this with the following: Don't worry if it says Math::BigInt::Lite, bignum and friends will use Lite if it is installed since it is faster for some operations. It will be -automatically upgraded to BigInt whenever neccessary: +automatically upgraded to BigInt whenever necessary: perl -Mbignum -le 'print ref(2**255)' This also means it is a bad idea to check for some specific package, since the actual contents of $x might be something unexpected. Due to the -transparent way of bignum C should not be neccessary, anyway. +transparent way of bignum C should not be necessary, anyway. Since Math::BigInt and BigFloat also overload the normal math operations, the following line will still work: @@ -364,7 +364,7 @@ following work: print $x + 1, " ", $y,"\n"; # prints 10 9 but calling any method that modifies the number directly will result in -B the original and the copy beeing destroyed: +B the original and the copy being destroyed: $x = 9; $y = $x; print $x->badd(1), " ", $y,"\n"; # prints 10 10 @@ -387,12 +387,12 @@ well as the documentation in BigInt for further details. =item inf() -A shortcut to return Math::BigInt->binf(). Usefull because Perl does not always +A shortcut to return Math::BigInt->binf(). Useful because Perl does not always handle bareword C properly. =item NaN() -A shortcut to return Math::BigInt->bnan(). Usefull because Perl does not always +A shortcut to return Math::BigInt->bnan(). Useful because Perl does not always handle bareword C properly. =item upgrade()