forfudan / decimo
An arbitrary-precision integer, decimal, binary floating-point, and rational library for Mojo, written in pure Mojo, with a 128-bit fixed-point decimal type as well.
Over time
2025-02-28 to 2026-11-08; peak 143,516 lines
2025-02-28 to 2026-11-08; 423 commits, counted up by commit date
- Opened 406
- Closed or merged 406
2025-03-02 to 2026-11-22; 406 issues and pull requests opened (8 issues, 398 pull requests), from GitHub by mojo_issues
Dependencies
Depends on forfudan/argmojo.
Used by forfudan/my-first-mojo-project, forfudan/symo, mojomath/linamo, neurallayer/roboquant-mojo.
Declared in its manifests at HEAD (toolchain left out): argmojo, auditwheel, gmpy2, mpmath, patchelf, pre-commit, python, python-build, ruff, twine.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| forfudan/symo | A symbolic computation library for Mojo, built on top of Decimo. | 84% |
| satoshin-des/MojoMath | A Mojo-library for doing mathematics. This is under developping. | 81% |
| magayagalabs/MathMojo | Define Mathematical Library for Mojo 🔥 | 81% |
| Mojo-Numerics-and-Algorithms-group/MojoSci | Numerics for Mojo | 81% |
| avitkauskas/mojo-datastructs | Some data structures that are not yet implemented in the standard library of Mojo. | 80% |
By the cosine of the embeddings of each repo's name, description and topics: bge-small-en-v1.5 at bbddccb7, from snapshot 3454761910736014829 of mojo.repo_embeddings, which mojo_embed writes.
Stars per month
- stars
- forks
2 stars over the months of GH Archive loaded so far (47; months in between aren't loaded yet), counted from its events.
Contributors per month
- contributors
- new
1 people authored or co-authored its commits (every commit reachable from HEAD, Co-authored-by trailers included, bots left out), counted by email.
Releases and tags
| Date | Tag | Name | From | Mojo version | Commit |
|---|---|---|---|---|---|
| 2026-10-24 | v0.16.0 | – | git tag | 1.2.0 | c49b209ae9 |
| 2026-09-26 | v0.15.0 | – | git tag | 1.1.0 | 0319125c37 |
| 2026-09-01 | v0.14.0 | – | git tag | 1.0.0 | ffc697b60b |
| 2026-08-22 | v0.13.0 | – | git tag | 1.0.0 | a92426eb67 |
| 2026-08-12 | v0.12.0 | – | git tag | 1.0.0 | d436e8cfd1 |
| 2026-07-02 | v0.11.0 | – | git tag | 1.0.0 | e271f859a1 |
| 2026-05-13 | v0.10.0 | – | git tag | 1.0.0 | 95f5ca4e91 |
| 2026-04-27 | cli-v0.10.0-alpha.1 pre-release | Decimo CLI v0.10.0-alpha.1 | GitHub release | 0.26.2.0 | b4ec397301 |
| 2026-03-23 | v0.9.0 | – | git tag | 0.26.2.0 | 1132e59aec |
| 2026-02-25 | v0.8.0 | – | git tag | 0.26.1.0 | b572a44aa0 |
| 2026-02-20 | tomlmojo_v0.7.0 | – | git tag | 0.26.1.0 | 3d5ce72f8e |
| 2026-02-11 | v0.7.0 | – | git tag | 0.26.1 | 00a47934d2 |
| 2025-12-16 | v0.6.0 | – | git tag | 0.25.7.0 | 0fab1a2349 |
| 2025-08-06 | v0.5.0 | – | git tag | 25.5 | 02da4dc9ec |
| 2025-06-30 | v0.4.1 | – | git tag | 25.4 | 51c9832297 |
| 2025-06-25 | v0.4.0 | – | git tag | 25.4 | 8ed3dabd73 |
| 2025-06-06 | v0.3.1 | – | git tag | 25.2 | fd82601e93 |
| 2025-04-15 | v0.3.0 | – | git tag | 25.2 | f2930f0832 |
| 2025-03-27 | v0.2.0 | – | git tag | 25.2 | fba2fa8103 |
| 2025-03-05 | v0.1.0 | – | git tag | 25.0 | 47f0a517f5 |
Issues and pull requests
0 open and 8 closed issues; 0 open, 398 merged and 0 closed pull requests, from GitHub by mojo_issues.
Pull requests
| # | Title | Opened | State | Comments |
|---|---|---|---|---|
| 406 | [doc] Merge docs/plans into docs/internal and make todo.md the one short to-do list | 2026-11-22 | merged | 0 |
| 405 | [doc] Plain wording in the manual + an internals appendix | 2026-11-22 | merged | 0 |
| 404 | [dec128] Read long strings correctly + `Dec128(x)` for integral scalars | 2026-11-21 | merged | 0 |
| 403 | [dec128] Fix // and %, tiny powers, exp below -128, and `compare_total` + sqrt of -0 | 2026-11-20 | merged | 0 |
| 402 | [doc] Add a Decimal128 part to the manual + document missing APIs and complete the appendices | 2026-11-19 | merged | 0 |
| 401 | [doc] Rewrite the manual's front page + plain page titles and fewer pages | 2026-11-19 | merged | 0 |
| 400 | [doc] Fix wrong examples in the user manual + make each page work on its own | 2026-11-19 | merged | 0 |
| 399 | [doc][ci] Prepare the user manual for the online book | 2026-11-18 | merged | 0 |
| 398 | [core] Construct every type from integer literals of any size + add `BigFloat.from_bigint_exactly()` | 2026-11-18 | merged | 0 |
| 397 | [bigdecimal] Fix directed rounding near 1 and powers of ten + round the calculator once | 2026-10-30 | merged | 0 |
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2025-02-28 | mojo_version | – | 25.2.0.dev2025022805 | 643198e039 |
| 2025-02-28 | tooling | none | magic | 643198e039 |
| 2025-03-02 | mojo_version | 25.2.0.dev2025022805 | 25.0 | a0cb909f86 |
| 2025-03-07 | mojo_version | 25.0 | 25.1 | bcd8799fb5 |
| 2025-03-23 | mojo_version | 25.1 | 25.2 | 5d4421f816 |
| 2025-05-16 | mojo_version | 25.2 | 25.3 | a1a1137c55 |
| 2025-06-06 | mojo_version | 25.3 | 25.2 | fd82601e93 |
| 2025-06-06 | tooling | magic | pixi | fd82601e93 |
| 2025-06-25 | mojo_version | 25.2 | 25.4 | 8ed3dabd73 |
| 2025-07-31 | mojo_version | 25.4 | * | baf2bc4e09 |
| 2025-08-06 | mojo_version | * | 25.5 | 02da4dc9ec |
| 2025-11-24 | mojo_version | 25.5 | 0.25.6 | 70148d18d0 |
| 2025-12-09 | mojo_version | 0.25.6 | 0.25.7.0 | aca68da6f4 |
| 2026-02-10 | mojo_version | 0.25.7.0 | 0.26.1.0 | 74c6d49c30 |
| 2026-02-11 | mojo_version | 0.26.1.0 | 0.26.1 | 00a47934d2 |
| 2026-02-16 | mojo_version | 0.26.1 | 0.26.1.0 | 419ed5a5cd |
| 2026-03-23 | mojo_version | 0.26.1.0 | 0.26.2.0 | 270194cba4 |
| 2026-05-13 | mojo_version | 0.26.2.0 | 1.0.0 | cbe14e5286 |
| 2026-09-18 | mojo_version | 1.0.0 | 1.1.0 | d21d4e4527 |
| 2026-10-22 | mojo_version | 1.1.0 | 1.2.0 | 55f4a02fc1 |
Commits
Commit types: Feature 32% · Fix 9% · Mojo version 5% · Migration 0% · Refactor 14% · Performance 4% · Docs 12% · Tests 4% · Build and chores 2% · Other 17%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-11-08 | 18f4729f26 | Fix +tests | [bigfloat] Fix wrong last digits and errors in hypot, exp10, arctan2, sin, cos, root and power (#396) | 143,516 | pixi | 1.2.0 |
| 2026-11-04 | 5955b14287 | Fix +tests | [bigdecimal] Fix directed rounding near 1 and powers of ten + round the calculator once (#397) | 143,054 | pixi | 1.2.0 |
| 2026-10-30 | 6d50af38f3 | Other +tests | [bigdecimal] Refuse a scale that would overflow + round a sum without the digits between its operands (#395) | 142,611 | pixi | 1.2.0 |
| 2026-10-30 | cf0b715870 | Fix +tests +docs | [bigdecimal] Take the other value of log, power, arctan2 and hypot by keyword (#394) | 142,047 | pixi | 1.2.0 |
| 2026-10-29 | e5cbcce96d | Refactor +tests | [bigfloat] Take the other value of log, power, hypot and arctan2 by keyword (#393) | 141,825 | pixi | 1.2.0 |
| 2026-10-29 | 0d95bbea9b | Feature +tests | [bigfloat] Add constructors from Int, Float64 and text, and the reflected and in-place operators (#392) | 141,735 | pixi | 1.2.0 |
| 2026-10-29 | 5e69cfad56 | Feature +tests +docs | [bigfloat] Add trigonometric and hyperbolic methods + a precision on every method + `Numeric` trait (#391) | 141,293 | pixi | 1.2.0 |
| 2026-10-24 | c49b209ae9 | Docs +tests | [doc][fix] Prepare the v0.16.0 release and refuse a digitless `Decimal128` string (#390) | 139,957 | pixi | 1.2.0 |
| 2026-10-22 | 55f4a02fc1 | Mojo version +tests | [mojo] Update the codebase to Mojo v1.2.0 (#388) | 139,833 | pixi | 1.2.0 |
| 2026-10-22 | 663425088d | Fix +tests | [bigfloat] Answer an argument beside a point where the value is exact (#389) | 139,772 | pixi | 1.1.0 |
| 2026-10-22 | bd191fb1e0 | Other +tests | [bigdecimal] Answer a small argument rather than ask a loop that cannot (#387) | 138,501 | pixi | 1.1.0 |
| 2026-10-21 | 4ad35455f9 | Feature +tests | [bigfloat] Implement `cot`, `csc`, and `sec` for `BigFloat` (#386) | 136,982 | pixi | 1.1.0 |
| 2026-10-21 | aa12852449 | Feature +tests | [core] Implement hash for all types (#385) | 136,055 | pixi | 1.1.0 |
| 2026-10-17 | 75edc32023 | Docs | [bench] Time the transcendentals a user calls, not the series behind them (#384) | 135,646 | pixi | 1.1.0 |
| 2026-10-16 | ad7db3d44b | Other +tests | [bigdecimal] Let the rest of the library use the binary kernels (#383) | 135,633 | pixi | 1.1.0 |
| 2026-10-16 | 3361701a86 | Fix +tests | [bigdecimal] Let the hyperbolic functions use the binary kernels (#382) | 135,446 | pixi | 1.1.0 |
| 2026-10-16 | c53a2a2785 | Other +tests | [bigdecimal] Work the circular functions out in binary (#381) | 135,294 | pixi | 1.1.0 |
| 2026-10-12 | a25dcdbcae | Docs | [docs] Put Rational and BigFloat in the README (#380) | 134,844 | pixi | 1.1.0 |
| 2026-10-12 | 6c19949a5d | Other +tests | [bigdecimal] Keep pi and e between calls (#379) | 134,736 | pixi | 1.1.0 |
| 2026-10-12 | e1b7eb83ff | Other +tests | [bigdecimal] Take pi from the thousand-digit table (#378) | 134,231 | pixi | 1.1.0 |
| 2026-10-12 | a35b01b131 | Other +tests | [bigdecimal] Answer or refuse at the far end of the exponent range (#377) | 134,192 | pixi | 1.1.0 |
| 2026-10-12 | 6dd5860142 | Fix +tests +docs | [bigdecimal] Work the inverse trigonometric functions out in binary (#376) | 133,967 | pixi | 1.1.0 |
| 2026-10-11 | ddd66d1b79 | Other | [bigfloat] Take pi from the Chudnovsky series, shared with the decimal side (#375) | 133,597 | pixi | 1.1.0 |
| 2026-10-11 | 7b677c58fb | Feature +tests | [bigdecimal] Work the long transcendentals out in binary (#374) | 133,455 | pixi | 1.1.0 |
| 2026-10-11 | d0610407c8 | Fix +tests | [bigfloat] Sum the long series in blocks (#373) | 132,912 | pixi | 1.1.0 |
| 2026-10-11 | 2db4995a7f | Fix +tests | [bigfloat] Parse a decimal without building its power of ten (#372) | 132,464 | pixi | 1.1.0 |
| 2026-10-11 | 1659be670b | Fix +tests | [bigfloat] Take the digits asked for, not the whole expansion (#371) | 131,832 | pixi | 1.1.0 |
| 2026-10-10 | 433237b0ae | Other +tests | [rational] Fill the gaps the type was missing, and document it (#370) | 130,456 | pixi | 1.1.0 |
| 2026-10-10 | e8d3181170 | Refactor | [bigfloat] Remove what was written twice, and a test that could not fire (#369) | 128,989 | pixi | 1.1.0 |
| 2026-10-10 | e3bd7178f1 | Docs | [docs] Check every worked example, and fix the ones that were wrong (#368) | 129,005 | pixi | 1.1.0 |
| 2026-10-10 | 91ee1bdc7b | Fix +tests | [bigfloat] Keep the constants quick for small requests, and answer every angle (#367) | 129,005 | pixi | 1.1.0 |
| 2026-10-10 | 207ecf956f | Tests | [tests] Pin the contracts the suite could not see (#366) | 128,540 | pixi | 1.1.0 |
| 2026-10-10 | 01e9f4e13e | Other +tests | [bigfloat] Work the power's exponents out in whole numbers of any size (#365) | 128,411 | pixi | 1.1.0 |
| 2026-10-10 | 28e0d9b8dc | Fix +tests | [bigfloat] Take a root of a high degree a different way (#364) | 128,176 | pixi | 1.1.0 |
| 2026-10-10 | a69fba06c0 | Fix +tests | [bigfloat] Turn away an argument too large instead of stopping the program (#363) | 127,808 | pixi | 1.1.0 |
| 2026-10-10 | 402be059c5 | Fix +tests | [bigfloat] Answer the roundings the loop cannot decide (#362) | 127,709 | pixi | 1.1.0 |
| 2026-10-10 | fed49bea3b | Fix +tests | [bigfloat] Round pi once for the angles on the axes (#361) | 127,475 | pixi | 1.1.0 |
| 2026-10-10 | 7b2c13a6a9 | Fix +tests | [bigfloat][bigdecimal] Carry the bits a repeated squaring loses (#360) | 127,273 | pixi | 1.1.0 |
| 2026-10-09 | af363cd425 | Other +tests | [bigdecimal] Refuse a precision that cannot be honoured (#359) | 126,927 | pixi | 1.1.0 |
| 2026-10-09 | ef2ec79e3e | Feature +tests | [bigfloat] Add the length and the angle of a point (#358) | 126,775 | pixi | 1.1.0 |
| 2026-10-09 | b92f0d73a9 | Feature +tests | [bigfloat] Add roots of any degree, exact where the value has one (#357) | 125,054 | pixi | 1.1.0 |
| 2026-10-09 | 2ea39e9c81 | Fix +tests | [bigdecimal] Answer a fractional power that lands on an exact value (#356) | 124,017 | pixi | 1.1.0 |
| 2026-10-09 | 04576b40fd | Feature +tests | [bigfloat] Add the power, with its exact answers found before the series (#355) | 123,454 | pixi | 1.1.0 |
| 2026-10-09 | 7610064ee4 | Feature +tests | [bigfloat] Add the other bases and the two functions that hold near zero (#354) | 121,859 | pixi | 1.1.0 |
| 2026-10-09 | a7fcde32a7 | Feature +tests | [bigfloat] Add the IEEE 754 companion operations (#353) | 116,162 | pixi | 1.1.0 |
| 2026-10-09 | bb75b799aa | Refactor +tests | [bigdecimal] Round an integer power once, in the mode that was asked for (#352) | 112,609 | pixi | 1.1.0 |
| 2026-10-09 | 955e83118a | Feature +tests | [bigint] Add the predicates and the two linear sequences (#333) | 112,092 | pixi | 1.1.0 |
| 2026-10-09 | a420986f9f | Feature +tests | [bigint] Add the quadratic residue symbols, modular square roots and the CRT (#349) | 110,943 | pixi | 1.1.0 |
| 2026-10-09 | 95fbf4e9bc | Feature +tests | [bigint] Add integer factorization (#348) | 109,438 | pixi | 1.1.0 |
| 2026-10-09 | dfab92d41e | Fix +tests | [bigfloat] Bring the logarithm's argument to one by square roots (#351) | 108,001 | pixi | 1.1.0 |
The latest 50 of 423 commits; all of them are in the JSON.