CTAN update: xint
– The xintexpr syntax now recognizes in addition to " for hexadecimal, the prefix ' for octal. - It also implements the prefixes 0x, 0o and 0b (with possibly a fractional part). - \xintiieval admits an optional parameter [h], [o], [b] for conversion of the integer output to hexadecimal, octal, or binary. – Babel active characters are auto-taming in \xinteval. It is now possible to use xintexpr also with OpTeX and ConTeXt-LMTX. Refer to xintchanges.md for more details. The file sourcexint.pdf has been removed because xint.pdf now contains both the user manual and the commented source code (i.e. it is the xint-all.pdf which could be built from sources in 2022 with hyperlinking back and forth from user manual to commented source code).
This package is located at https://mirrors.ctan.org/macros/generic/xint More information is at https://ctan.org/pkg/xint
Thanks for the upload. For the CTAN Team Manfred Lotz 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 .
Xint – Expandable arbitrary precision floating point and integer operations
The calx package and its superset the xintexpr package provide:
- \calxeval: numerical expression parser for floating-point computations.
- \calxinteval: numerical expression parser for computations with big integers.
Floating-point computations are supported up to 100 significant digits of precision. A full set of trigonometric, logarithmic, and exponential functions is implemented.
The two parsers are also available under their legacy names \xintfloateval and \xintiieval, respectively.
Loading xintexpr automatically loads calx and provides a third parser, \xinteval, which handles fractions. It also loads the legacy macro interface packages xintcore, xint, and xintfrac.
All three parsers produce their results by expansion alone. They accept comma-separated inputs and nested structures using square brackets. Users can define custom variables and functions.
| Package | Xint |
| Version | 2.0a1 2026-11-01 |
| Copyright | 2013–2022, 2025, 2026 Jean-François Burnol |
| Maintainer | Jean-François Burnol |