bnumexpr__source

Extends eTeX’s \numexpr...\relax construct to big integers

Version:
1.7b
Copyright:
Jean-François Burnol
License:
lppl1.3c
Packaged on:
10/13/2025 13:23:45
Number of files:
2
Size on disk:
135 kB

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).