CTAN Comprehensive TeX Archive Network

Bnumexpr – Extends e’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).

Sources/macros/latex/contrib/bnumexpr
Documentation
Version1.7b 2025-09-27
LicensesThe Project Public License 1.3c
Copyright2014–2025 Jean-François Burnol
MaintainerJean-François Burnol
Contained inTeX Live as bnumexpr
MiKTeX as bnumexpr
TopicsCalculation
Tagged PDF – fully compatible
Arithmetic

Download the contents of this package in one zip archive (229.9k).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Guest Book Sitemap Contact Contact Author