CTAN update: xint
Bug fixes - squaring macro \xintSqr from xintfrac.sty was broken due to a misspelled sub-macro name. Dates back to 1.1 release of 2014/10/28 :-((. - 1.2c's fix to the subtraction bug from 1.2 introduced another bug, which in some cases could create leading zeroes in the output, or even worse. This could invalidate other routines using subtractions, like \xintiiSquareRoot. Improvements and new features - functions binomial, pfactorial and factorial in both integer and float versions. - faster implementation and increased accuracy of float power macros. - faster implementation of both integral and float square root macros. - the float square root achieves _correct_ (aka _exact_) rounding in arbitrary precision. - modified behaviour for the \xintPFloat macro, used by \xintthefloatexpr to prettify its output. It now opts for decimal notation if and only if scientific notation would use an exponent between -5 and 5 inclusive. The zero value is printed 0. with a dot. - the documentation offers a more precise (and accurate) discussion of floating point issues. - various under-the-hood code improvements; the floatexpr operations are chained in a faster way, from skipping some unneeded parsing on results of earlier computations. The absence of a real inner data structure for floats (incorporating their precisions, for one) is however still a bit hair rising: currently the lengths of the mantissas of the operands are computed again by each float macro or expression operation. - renewed desperate efforts at improving the documentation by random shuffling of sections and well thought additions; cuts were considered and even performed. See CHANGES.{html,pdf} for more.
This package is located at http://mirror.ctan.org/macros/generic/xint More information is at http://www.ctan.org/pkg/xint We are supported by the TeX User Groups. Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Ina Dau
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 |