CTAN Comprehensive TeX Archive Network

CTAN update: bnumexpr

Date: September 8, 2025 7:51:47 AM CEST
Jean-François Burnol submitted an update to the bnumexpr package. Version number: 1.6 2025-09-05 License type: lppl1.3c Summary description: Extends eTeX’s \numexpr...\relax construct to big integers Announcement text:
\bnumeval extends LaTeX's \inteval with support for arbitrarily big integers, // for floored division, /: for the associated remainder, ^ and ** for powers, ! for factorials. A user interface allows to add new operators to the syntax, or to modify the behavior of existing ones. The package can also be used under Plain (pdf|xe|lua)TeX, with help of miniltx. The 1.6 release adds: - 0b, 0o (and '), 0x are recognized as prefixes for binary, octal, and hexadecimal (formerly, only " for hexadecimal was provided). - \bnumeval accepts an optional argument [b], [o] or [h], which tells to convert the output to binary, octal, or hexadecimal. - characters (such as ! and : with French) which are Babel-active with the pdftex engine are out-of-the-box compatible. There are some breaking changes (mainly, the replacement of \evaltohex by \bnumeval[h]), check the PDF documentation.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/bnumexpr More information is at https://www.ctan.org/pkg/bnumexpr
Thanks for the upload. For the CTAN Team Erik Braun
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

bnumexpr – Extends ’s \numexpr...\relax construct to big integers

The package provides the command \bnumeval, which extends 's \inteval with support for arbitrarily big integers, // for floored division, /: for the associated remainder, ^ and ** for powers, ! for factorials, 0b, 0o and ', 0x and ", as prefixes for binary, octal, or hexadecimal inputs. With the optional argument [h] (or [o] or [b]) the output is converted to hexadecimal (or octal, or binary).

Packagebnumexpr
Version1.6a 2025-09-07
Copyright2014–2025 Jean-François Burnol
MaintainerJean-François Burnol

Announcements

more

Guest Book Sitemap Contact Contact Author