CTAN update: bnumexpr
Date: October 15, 2015 7:36:13 PM CEST
Jean-François Burnol submitted an update to the
bnumexpr
package.
Version number: 1.2a 2015-10-14
License type: lppl1.3
Summary description: Extends eTeX’s \numexpr...\relax construct to big integers
Announcement text:
The package bnumexpr allows _expandable_ computations with big integers, the four infix operators +, -, *, / (which does rounded division), the power operators ^ or **, the factorial !, the truncated division //, and its associated modulo /:. For example: \thebnumexpr (92874927979^5-3197927979^6)/30!\relax outputs -4006240736596543944035189. By default the underlying arithmetic macros are the ones provided by package xintcore [1] (its release 1.2 is required). [1] http://www.ctan.org/pkg/xint bnumexpr has only one option _custom_ which says to not load xintcore, and a command \bnumexprsetup to inform the package which macros to use if not those from xintcore. This is a breaking release: some options and commands from v1.1 are not defined anymore (as \bnumexprsetup provides a new interface), and documents which used them will need updating.
This package is located at http://mirror.ctan.org/macros/latex/contrib/bnumexpr More information is at http://www.ctan.org/pkg/bnumexpr We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Ina Dau
The package bnumexpr allows _expandable_ computations with big integers, the four infix operators +, -, *, / (which does rounded division), the power operators ^ or **, the factorial !, the truncated division //, and its associated modulo /:. For example: \thebnumexpr (92874927979^5-3197927979^6)/30!\relax outputs -4006240736596543944035189. By default the underlying arithmetic macros are the ones provided by package xintcore [1] (its release 1.2 is required). [1] http://www.ctan.org/pkg/xint bnumexpr has only one option _custom_ which says to not load xintcore, and a command \bnumexprsetup to inform the package which macros to use if not those from xintcore. This is a breaking release: some options and commands from v1.1 are not defined anymore (as \bnumexprsetup provides a new interface), and documents which used them will need updating.
This package is located at http://mirror.ctan.org/macros/latex/contrib/bnumexpr More information is at http://www.ctan.org/pkg/bnumexpr We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Ina Dau
bnumexpr – Extends ε-TeX’s \numexpr...\relax construct to big integers
The package provides the command \bnumeval, which extends LaTeX'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).
Package | bnumexpr |
Version | 1.7a 2025-09-14 |
Copyright | 2014–2025 Jean-François Burnol |
Maintainer | Jean-François Burnol |