CTAN Comprehensive TeX Archive Network

CTAN update: xint

Date: February 27, 2020 7:49:47 AM CET
Jean-François Burnol submitted an update to the xint package. Version number: 1.4b 2020-02-25 License type: lppl1.3c Summary description: Expandable operations on long numbers Announcement text:
1.4b (2020/02/25) * Added: - functions zip() and flat() - chaining of comparison operators - customizability of the "e" separator of mantissas and exponents in output of \xintfloateval * Fixed: - \xintieval{[D]...} with a negative D (a 1.4a feature) used erroneously a catcode 12 "e" in output, which moreover was immune to customization * Announced: - long deprecated &, |, and = will be removed at next major release, use &&, || and ==. - \thexintexpr et al. will be removed at next major release, use \xinttheexpr or directly \xintexpr et al. as since 1.4 they can be used in typesetting flow. - power operators ** and ^ will turn from left to right associative at next major release. This matches with Python and l3fp. * Various documentation fixes and improvements.
This package is located at http://mirror.ctan.org/macros/generic/xint More information is at https://www.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.

PackageXint
Version2.0a1 2026-11-01
Copyright2013–2022, 2025, 2026 Jean-François Burnol
MaintainerJean-François Burnol

Announcements

more

Guest Book Sitemap Contact Contact Author