pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/p5-Math-BigInt
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jun 28 06:24:20 UTC 2026
Modified Files:
pkgsrc/math/p5-Math-BigInt: Makefile distinfo
Log Message:
p5-Math-BigInt: update to 2.005003.
2.005003 2025-04-13
* Add new methods to_fp80() and from_fp80() for encoding and decoding values in
the x86 extended-precision 80 bit format.
2.005002 2025-03-28
* Fix the handling of read-only objects in bblsft() and bbrsft() in
Math::BigFloat and Math::BigRat.
2.005001 2025-03-25
New:
* Add new method bperm() to Math::BigInt, Math::BigFloat, and Math::BigRat.
* Add the following methods to Math::BigRat and Math::BigFloat:
bilog2(), bilog10(), bclog2(), bclog10(), bfib(), blucas(),
from_bytes(), from_base(), to_bytes(), to_ieee754()
* Add method bmuladd(), bgcd(), and blcm() to Math::BigRat.
* Add method bpi() to Math::BigRat. It returns a rational approximation of PI
accurate to the specified accuracy or precision, or the default accuracy if
no accuracy is specified.
* Add methods bdstr(), bnstr(), and bestr() to Math::BigRat.
* Add support for rounding in Math::BigFloat methods bdstr(), bestr(), bnstr(),
and bestr().
* Add method from_ieee754() to Math::BigInt and Math::BigRat, including
documentation. In Math::BigInt, from_ieee754() is similar to the other
from_xxx() methods in that way that it returns a NaN if the input is a finite
non-integer.
* Add new backend library method _scmp() for doing signed comparison.
Changes/Improvements:
* Method new() now always returns a new object, as would be expected.
* Make bgcd() in Math::BigRat and Math::BigFloat support non-integer arguments.
Now, bgcd(0.8, 1.2) in Math::BigFloat returns 0.4, and bgcd(4/5, 6/5) in
Math::BigRat returns 2/5.
* Make blcm(0, 0) work the same way in Math::BigInt, Math::BigRat, and
Math::BigFloat. Now blcm(0, 0) is always 0.
* Correct the documentation for is_inf(), bceil() and bfloor()
* Methods bdiv() and bmod() are now aliases to bfdiv() and bfmod(),
respectively. (This doesn't change the behaviour of bdiv() and bmod().)
* Math::BigFloat methods bfmod() and btmod() are faster than before.
* Improve documentation for bnok().
* Improve upgrading and downgrading, e.g., use $class->upgrade() rather than
just $upgrade, since the former works better for sublasses.
Fixes:
* Add missing calls to modify().
* All boolean methods now return 1 or 0. Some would return 1 or "".
* Harmonise methods in different classes so they behave similarly, at least to
the extent possible.
* Fix bug in Math::BigInt->bfib() causing sign to be incorrect for some of the
output values when bfib() was called in list context with a negative input.
* Correct miscellaneous typos and errors in the documentation.
2.004001 2025-02-12
* Improve upgrading and downgrading.
- Upgrading and downgrading is more consistent.
- Upgrading and downgrading now keeps the reference, so in the following
example, $x changes from being a Math::BigInt with a value of 2 to a
Math::BigFloat with the value 1.4142...
perl -Mbignum -le '$x = 2; $x -> bsqrt(); print $x'
* Fix bug in Math::BigFloat->bdiv(): in list context, bdiv() would do floored
division, except when the denominator was 1. Now, bdiv() always does floored
division.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/math/p5-Math-BigInt/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/math/p5-Math-BigInt/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/p5-Math-BigInt/Makefile
diff -u pkgsrc/math/p5-Math-BigInt/Makefile:1.27 pkgsrc/math/p5-Math-BigInt/Makefile:1.28
--- pkgsrc/math/p5-Math-BigInt/Makefile:1.27 Fri Jul 4 08:47:28 2025
+++ pkgsrc/math/p5-Math-BigInt/Makefile Sun Jun 28 06:24:20 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2025/07/04 08:47:28 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2026/06/28 06:24:20 wiz Exp $
-DISTNAME= Math-BigInt-2.003004
+DISTNAME= Math-BigInt-2.005003
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
Index: pkgsrc/math/p5-Math-BigInt/distinfo
diff -u pkgsrc/math/p5-Math-BigInt/distinfo:1.18 pkgsrc/math/p5-Math-BigInt/distinfo:1.19
--- pkgsrc/math/p5-Math-BigInt/distinfo:1.18 Wed Feb 5 08:34:22 2025
+++ pkgsrc/math/p5-Math-BigInt/distinfo Sun Jun 28 06:24:20 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2025/02/05 08:34:22 wen Exp $
+$NetBSD: distinfo,v 1.19 2026/06/28 06:24:20 wiz Exp $
-BLAKE2s (Math-BigInt-2.003004.tar.gz) = 7f9cd1cb8e5bdb910a94728da235be922888697b3ad77c2ae35fa9f26d8df7d9
-SHA512 (Math-BigInt-2.003004.tar.gz) = 0053caec3044ec78ad80fd20f5b3510e76f4d33482a655abe3c0f0f83771da6a807b103eefa1283728edd358b09092b980dde46ed25c6c293ea6790355ae8d93
-Size (Math-BigInt-2.003004.tar.gz) = 3048517 bytes
+BLAKE2s (Math-BigInt-2.005003.tar.gz) = e7597f88ce9a700648e62e94c69891018000a4d7c4a63c7304e7e4398827e8fe
+SHA512 (Math-BigInt-2.005003.tar.gz) = 0af2d089fe152a734dc62e83b772c6801ec5c8b68a5ad795ea12bbde2211d39b487d31cf6adea6ce1dacf28e1889ad51d4e17314283737c24c90e4b7f912c0e7
+Size (Math-BigInt-2.005003.tar.gz) = 3108623 bytes
Home |
Main Index |
Thread Index |
Old Index