Skip to content
⌘K

Universal Numbers Library

Large collection of number systems providing custom arithmetic for mixed-precision algorithm development and optimization.

health 87contrib 53505

Overview & architecture

C++ standard
–
Build systems
–
License
MIT
Languages
C++
Last release
v5.18.0 · Nov 19, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
505
Merged PRs (30d)
latest
182▲ 130
Contributors (90d)
latest
4
Issue first response p50
–
No snapshots yet.
11 open issues1 open PRs178 commits (30d)0 good first issues2 help wanted

Recent notable activity

  • Release
    Universal Numbers Library v5.18.0

    [5.18.0] - 2026-11-19 QA sweeps of posit, the tapered types, cfloat, the other floats, fixed-point, integer and rational; exact references for the verifiers; and NaturalNumber's NaNN. 36 commits since v5.17.0, with 51 behaviour changes: posit, bposit, takum and takum_log convert on the encoding and cast to integers by…

    v5.18.0
  • Release
    Universal Numbers Library v5.17.0

    [5.17.0] - 2026-11-14 Behaviour changes fixpnt cordic::atan2/atan/hypot/polar run more iterations by default where rbits / compute in dd/qd whatever is included; dd/qd abs(-0) is +0, fma and underflowed products keep the IEEE zero sign (#2062) native: native ulp(x) is a positive magnitude for negative x, finite at…

    v5.17.0
  • Release
    Universal Numbers Library v5.16.0

    [5.16.0] - 2026-11-14 Behaviour changes numeric: faithful finite / +-inf is now a signed zero instead of NaN, a -0 result keeps its sign (-0 * 1 is -0, x / -0 is -inf for positive x), and pow with a negative integer exponent whose positive power overflows returns the underflowed (zero or subnormal) result instead of…

    v5.16.0
  • Release
    Universal Numbers Library v5.15.0

    [5.15.0] - 2026-11-06 Behaviour changes dd: dd and qd multiply/divide (and dd_cascade divide) at the top of the double range return the exact result instead of NaN (#1884) dd: numeric_limits min(), max(), lowest(), min_exponent and the cascades' epsilon() change value; qd's min() moves from 2^-969 to 2^-863 (#1887)…

    v5.15.0
  • Release
    Universal Numbers Library v5.14.0

    [5.14.0] - 2026-10-30 Behaviour changes math: ipow() is removed from cfloat, fixpnt, lns, takum, dbns, bfloat16 and faithful; use pow(a, int) (#1876) integer: integer pow(a, integer) and pow(a, int) are exact (they went through double); ipow with a negative exponent gives the truncated 1 / a^b (it returned garbage);…

    v5.14.0
  • Release
    Universal Numbers Library v5.13.0

    [5.13.0] - 2026-10-30 Behaviour changes posit: posit trunc/round/floor/ceil/fmod/remainder/frac are exact or correctly rounded at every nbits (they went through double); posit isinteger() is false for non-integers (it was always true), so ipow of a non-integer posit returns 0 (#1869) posit: posit exp, exp2, exp10,…

    v5.13.0
  • Release
    Universal Numbers Library v5.12.0

    [5.12.0] - 2026-10-29 Behaviour changes efloat: efloat exp, exp2, exp10, expm1, sinh, cosh and pow return finite, correctly rounded results out to x log2 b = 2^17, e.g. exp(131072) = 2^189096.6 and exp(-200000) = 2^-288539 (#1777) efloat: double(x) and float(x) of an efloat x below the smallest normal now round…

    v5.12.0
  • New project
    Universal Numbers Library added to the atlas

    Large collection of number systems providing custom arithmetic for mixed-precision algorithm development and optimization.

  • Release
    Universal Numbers Library v5.11.0

    [5.11.0] - 2026-10-21 Behaviour changes efloat: efloat x op literal and the math library run at x's precision rather than the type's nlimbs * 32 bits, and functions of literals carry no precision; efloat division, addition and subtraction are now correctly rounded (quotients were often 1 ulp off, sums truncated), and…

    v5.11.0
  • Release
    Universal Numbers Library v5.10.0

    [5.10.0] - 2026-10-19 Behaviour changes dd_cascade: dd_cascade/td_cascade/qd_cascade exp(x) is finite for 709.0 pi/4, most visibly for large x and near multiples of pi/2); arguments past ~1e100 return the correct value instead of NaN with ERANGE, and the _trig_argument_too_large exceptions are removed (#1727) cfloat:…

    v5.10.0
  • Release
    Universal Numbers Library v5.9.0

    [5.9.0] - 2026-10-17 Behaviour changes cfloat: a positive cfloat infinity prints as "inf" (was "-inf"); blocktriple::setinf() now requires its sign argument (#1720) dd_cascade, qd_cascade: log, log2, log10 and log1p of a non-positive argument no longer print a message to std::cerr; they still set errno = EDOM and…

    v5.9.0
  • Release
    Universal Numbers Library v5.8.0

    [5.8.0] - 2026-10-17 Behaviour changes unum1: ubound<> results are now outward-rounded enclosures with open ends; ubound(inexact unum) is the open tile instead of a closed interval, and next_exact(1.0) is 1 + 2^-maxfsize instead of 2 (#1700) poxel: tile_interval (areal/poxel) * and / at open-zero or infinite ends…

    v5.8.0

Stories

ReleaseFor you

Universal Numbers Library v5.18.0 released

[5.18.0] - 2026-11-19 QA sweeps of posit, the tapered types, cfloat, the other floats, fixed-point, integer and rational; exact references for the verifiers; and NaturalNumber's NaNN. 36 commits since v5.17.0, with 51 behaviour changes: posit, bposit, takum and takum_log convert on the encoding…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

ReleaseFor you

Universal Numbers Library v5.17.0 released

[5.17.0] - 2026-11-14 Behaviour changes fixpnt cordic::atan2/atan/hypot/polar run more iterations by default where rbits / compute in dd/qd whatever is included; dd/qd abs(-0) is +0, fma and underflowed products keep the IEEE zero sign (#2062) native: native ulp(x) is a positive magnitude for…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

ReleaseFor you

Universal Numbers Library v5.16.0 released

[5.16.0] - 2026-11-14 Behaviour changes numeric: faithful finite / +-inf is now a signed zero instead of NaN, a -0 result keeps its sign (-0 * 1 is -0, x / -0 is -inf for positive x), and pow with a negative integer exponent whose positive power overflows returns the underflowed (zero or…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

ReleaseFor you

Universal Numbers Library v5.15.0 released

[5.15.0] - 2026-11-06 Behaviour changes dd: dd and qd multiply/divide (and dd_cascade divide) at the top of the double range return the exact result instead of NaN (#1884) dd: numeric_limits min(), max(), lowest(), min_exponent and the cascades' epsilon() change value; qd's min() moves from 2^-969…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

ReleaseFor you

Universal Numbers Library v5.14.0 released

[5.14.0] - 2026-10-30 Behaviour changes math: ipow() is removed from cfloat, fixpnt, lns, takum, dbns, bfloat16 and faithful; use pow(a, int) (#1876) integer: integer pow(a, integer) and pow(a, int) are exact (they went through double); ipow with a negative exponent gives the truncated 1 / a^b (it…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

ReleaseFor you

Universal Numbers Library v5.13.0 released

[5.13.0] - 2026-10-30 Behaviour changes posit: posit trunc/round/floor/ceil/fmod/remainder/frac are exact or correctly rounded at every nbits (they went through double); posit isinteger() is false for non-integers (it was always true), so ipow of a non-integer posit returns 0 (#1869) posit: posit…

Why it matters: Universal Numbers Library is in HPC & Scientific (one of your focus areas).

Maintainers & organizations

every claim links to its source

Maintainers

No maintainers recorded yet.

Top contributors

Releases & changelog

  • Universal Numbers Library v5.18.0major

    [5.18.0] - 2026-11-19 QA sweeps of posit, the tapered types, cfloat, the other floats, fixed-point, integer and rational; exact references for the verifiers; and NaturalNumber's NaNN. 36 commits since v5.17.0, with 51 behaviour changes: posit, bposit, takum and takum_log convert on the encoding and cast to integers by…

  • Universal Numbers Library v5.17.0major

    [5.17.0] - 2026-11-14 Behaviour changes fixpnt cordic::atan2/atan/hypot/polar run more iterations by default where rbits / compute in dd/qd whatever is included; dd/qd abs(-0) is +0, fma and underflowed products keep the IEEE zero sign (#2062) native: native ulp(x) is a positive magnitude for negative x, finite at…

  • Universal Numbers Library v5.16.0major

    [5.16.0] - 2026-11-14 Behaviour changes numeric: faithful finite / +-inf is now a signed zero instead of NaN, a -0 result keeps its sign (-0 * 1 is -0, x / -0 is -inf for positive x), and pow with a negative integer exponent whose positive power overflows returns the underflowed (zero or subnormal) result instead of…

  • Universal Numbers Library v5.15.0major

    [5.15.0] - 2026-11-06 Behaviour changes dd: dd and qd multiply/divide (and dd_cascade divide) at the top of the double range return the exact result instead of NaN (#1884) dd: numeric_limits min(), max(), lowest(), min_exponent and the cascades' epsilon() change value; qd's min() moves from 2^-969 to 2^-863 (#1887)…

  • Universal Numbers Library v5.14.0major

    [5.14.0] - 2026-10-30 Behaviour changes math: ipow() is removed from cfloat, fixpnt, lns, takum, dbns, bfloat16 and faithful; use pow(a, int) (#1876) integer: integer pow(a, integer) and pow(a, int) are exact (they went through double); ipow with a negative exponent gives the truncated 1 / a^b (it returned garbage);…

  • Universal Numbers Library v5.13.0major

    [5.13.0] - 2026-10-30 Behaviour changes posit: posit trunc/round/floor/ceil/fmod/remainder/frac are exact or correctly rounded at every nbits (they went through double); posit isinteger() is false for non-integers (it was always true), so ipow of a non-integer posit returns 0 (#1869) posit: posit exp, exp2, exp10,…

  • Universal Numbers Library v5.12.0major

    [5.12.0] - 2026-10-29 Behaviour changes efloat: efloat exp, exp2, exp10, expm1, sinh, cosh and pow return finite, correctly rounded results out to x log2 b = 2^17, e.g. exp(131072) = 2^189096.6 and exp(-200000) = 2^-288539 (#1777) efloat: double(x) and float(x) of an efloat x below the smallest normal now round…

  • Universal Numbers Library v5.11.0major

    [5.11.0] - 2026-10-21 Behaviour changes efloat: efloat x op literal and the math library run at x's precision rather than the type's nlimbs * 32 bits, and functions of literals carry no precision; efloat division, addition and subtraction are now correctly rounded (quotients were often 1 ulp off, sums truncated), and…

  • Universal Numbers Library v5.10.0major

    [5.10.0] - 2026-10-19 Behaviour changes dd_cascade: dd_cascade/td_cascade/qd_cascade exp(x) is finite for 709.0 pi/4, most visibly for large x and near multiples of pi/2); arguments past ~1e100 return the correct value instead of NaN with ERANGE, and the _trig_argument_too_large exceptions are removed (#1727) cfloat:…

  • Universal Numbers Library v5.9.0major

    [5.9.0] - 2026-10-17 Behaviour changes cfloat: a positive cfloat infinity prints as "inf" (was "-inf"); blocktriple::setinf() now requires its sign argument (#1720) dd_cascade, qd_cascade: log, log2, log10 and log1p of a non-positive argument no longer print a message to std::cerr; they still set errno = EDOM and…

  • Universal Numbers Library v5.8.0major

    [5.8.0] - 2026-10-17 Behaviour changes unum1: ubound<> results are now outward-rounded enclosures with open ends; ubound(inexact unum) is the open tile instead of a closed interval, and next_exact(1.0) is 1 + 2^-maxfsize instead of 2 (#1700) poxel: tile_interval (areal/poxel) * and / at open-zero or infinite ends…

  • Universal Numbers Library v5.7.0major

    [5.7.0] - 2026-10-16 Added utility: Trace the uncertainty box per step and draw it as an HTML page (#1691) by @Ravenwater quire: Accumulator_* protocol so linear-algebra libraries accumulate in a quire (#1699) by @Ravenwater Documentation lindex: Level-index design assessment, citations verified (#1698) by @Ravenwater

  • Universal Numbers Library v5.6.2

    [5.6.2] - 2026-10-14 Behaviour changes cfloat: +0 + -0, -0 + +0 and +0 - +0 now return +0 instead of -0, per IEEE 754 roundTiesToEven (#1688) Build System deps: Bump the docs-site-minor-patch group (#1685) by @dependabot[bot] Fixed ci: Drop the release Docker build's GHA layer cache (#1684) by @Ravenwater cfloat: A…

  • Universal Numbers Library v5.6.1

    [5.6.1] - 2026-10-12 Fixed cmake: Aggregate poxel, bposit and cascade tests into the CI build categories (#1683) by @Ravenwater

  • Universal Numbers Library v5.6.0major

    [5.6.0] - 2026-10-12 Added bposit: Fused multiply-add through the quire (#1681) by @Ravenwater Miscellaneous headers: Remove the unused number-system skeletons (#1682) by @Ravenwater

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement.
5 more candidates below the publish threshold
Help wanteduntouchedcandidateMatches your profileLinear Algebra & Numerical Computing

investigate if we can decouple an expression template front-end from an arithmetic back-end

boost::multiprecision is organized in a number class front-end and an arithmetic back-end The number class provides expression template functionality, but adds a little bit of overhead: for simple types about 0.5%. So a 100MOPS code would run at 95MOPS with expression templates enables. We know that for small types, the extra processing inside the expression templates to avoid temporaries is not going to be a win, but for arbitrary precision types that could need thousands of bytes, any copies avoided will be a big win. Since Universal is mostly about providing high-performance, tailored…

47score
compilersperformancetemplates
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.61 = 18Universal Numbers Library is in HPC & Scientific (a focus area); issue needs performance, which you listed
  • Maintainer engagement 25% × 0.45 = 11comments not checked; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.85 = 17newcomer label; clear scope; has reproduction steps; has code; project onboarding 25%
Evidence
Suggested first step

Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.

Rule-generated · updated 3d ago
LabelleduntouchedcandidateMatches your profileLinear Algebra & Numerical Computing

fixpnt: cordic::atanh wrong on 8-bit layouts with MSVC 19.52 (new CI runner image)

fixpnt_cordic_hyperbolic (static/fixpnt/binary/math/cordic_hyperbolic.cpp) fails on the Windows x64 (MSVC) CI job since the runner image moved from 20261103 to 20261116, which upgraded the compiler from MSVC 19.51.36260.0 to 19.52.37029.0. Not a code change: the test compiles to the same code on both runs. Its include chain (fixpnt, qd, test_suite) is untouched, and the seed is fixed (std::mt19937_64 rng(2041)). Passing on 19.51: main at 99273acd, run 44402903925. Failing on 19.52: PR #2138 at e67f68bc, run 44407842641, job 135167724887. #2138 touches only universal_cast, hfloat, polyroot…

30score
testingwindows
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.40 = 12Universal Numbers Library is in HPC & Scientific (a focus area)
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.35 = 7clear scope; has reproduction steps; project onboarding 25%
Evidence
Suggested first step

Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.

Rule-generated · updated 3d ago
LabelleduntouchedcandidateMatches your profileLinear Algebra & Numerical Computing

convert: test the double-expansion target range guard with a saturating cfloat

Follow-up from PR #2138 (#2133), from a CodeRabbit nitpick that was not addressed there. universal_cast's double expansion (number/convert/universal_convert.hpp) declines a part within a factor of two of the target's max() before converting it. The reason: a saturating target can round double(Target(h)) back to h, so a saturated part would read as exact. The regression tests cover that guard only through hfloat cases. hfloat targets are now excluded by the is_binary_expansion_type opt-in, so those tests take the plain path and never reach the guard. cfloat is an eligible target, and no test…

27score
testing
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.40 = 12Universal Numbers Library is in HPC & Scientific (a focus area)
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.20 = 4clear scope; project onboarding 25%
Evidence
Suggested first step

Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.

Rule-generated · updated 3d ago
LabelleduntouchedstaleMatches your profileLinear Algebra & Numerical Computing

elreal: transcendental functions take 7-20 s at the default precision of 32 blocks

Problem Every elreal transcendental takes seconds at the default precision of 32 blocks (about 510 decimal digits on a double host). Measured at -O2 on a double host, i7-12700K, after #2013: call seconds ------ exp(1) 11.8 exp(40) 11.5 log(2) 7.0 sin(1) 8.4 pow(2, 0.5) 9.8 log(exp(1e6)) 19.9 This is the cost of the series at that precision, not a domain or range defect. #2013 fixed those (exp(40) was 45.9 s and exp(1e6) did not finish). Multi-precision libraries do these calls in microseconds at 500 digits, so the gap is algorithmic, not inherent. Where the time goes (to be measured first)…

27score
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.40 = 12Universal Numbers Library is in HPC & Scientific (a focus area)
  • Maintainer engagement 25% × 0.45 = 11no maintainer comment yet; labelled (triaged); project responsiveness 100%
  • Feasibility 20% × 0.20 = 4clear scope; project onboarding 25%
Evidence
Suggested first step

Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.

Rule-generated · updated 13d ago
LabelleduntouchedstaleMatches your profileLinear Algebra & Numerical Computing

posit math: functions computed through double lose precision and range past 64 bits

Problem Almost every posit math function computes through double and rounds back: cpp return posit (std::log(double(x))); That is correct for narrow posits, and wrong for wide ones in two ways: Precision. A result rounded twice, first to binary64 and then to the posit, is correctly rounded only while the posit's precision p = nbits - 2 - es (near 1) is small enough; for sqrt the bound is nbits (p = 59) and wider, the result carries at most double's 53 bits. Range. posit and posit reach 2^2016 and 2^7936, past double's range, so their extremes overflow or underflow on the way through. The…

26score
  • Demand 25% × 0.00 = 00 reactions, 0 comments
  • Technical fit 30% × 0.40 = 12Universal Numbers Library is in HPC & Scientific (a focus area)
  • Maintainer engagement 25% × 0.20 = 5no maintainer comment yet; labelled (triaged)
  • Feasibility 20% × 0.45 = 9clear scope; has reproduction steps; has code; project onboarding 0%
Evidence
Suggested first step

Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.

Rule-generated · updated 23d ago

Why this score

Health 87Contribution friendliness 53computed 19h ago
  • Activity1.00
    182 merged PRs in 30 days (full marks at 20); 184 commits in 30 days (full marks at 60)health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs sitecontrib
  • Entry points0.29
    1 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10)contrib
  • Maintainer responsiveness1.00
    median PR merge time 1 h (full marks within 72 h, zero after 60 days)healthcontrib
  • Release cadence1.00
    last release 4 days ago (full marks within 90, zero after 730); 17 releases in 365 days (full marks at 4)health
  • Backlog pressure1.00
    20% of 10 scanned open issues are older than a year (full marks at <= 20%, zero at >= 80%)health
  • Contributor breadth0.36
    4 unique contributors in 90 days (full marks at 25); top contributor has 94% of commits; stars count for at most 5% of this signalhealth

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.