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).
Sources | /macros/latex/contrib/bnumexpr |
Documentation | |
Version | 1.7 2025-09-13 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2014–2025 Jean-François Burnol |
Maintainer | Jean-François Burnol |
Contained in | TeX Live as bnumexpr MiKTeX as bnumexpr |
Topics | Calculation Arithmetic |
Download the contents of this package in one zip archive (199.1k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments