Repository navigation
Conversation
… division Pure-Julia, allocation-free, libcall-free (except one 128-bit divide per reciprocal) numeric kernels over UInt32/64/128/256 magnitudes: - Granlund–Montgomery magic-constant division by 10^k at every width (Julia/LLVM emits __udivti3 for wide ÷ constant; measured ~3x faster) - scale-down with all seven RoundingModes via half-compare (no 2r overflow), correct directed rounding for negatives via explicit sign flag - checked scale-up against typemax÷10^k tables - 128x128→256 and 256x256→512 schoolbook limb multiplies - 256-bit division: Möller–Granlund reciprocal 2-by-1 steps for 64-bit divisors, Knuth Algorithm D for wider - bits-based decimal digit count with one table compare 590k differential assertions against a BigInt oracle (all widths, all modes, tie/boundary sweeps, limb-boundary adversarial divisions), plus allocation-free guarantees. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ison, hashing, printing
Decimal{P,S,T}: isbits fixed-scale exact decimal (value = unscaled*10^-S,
|unscaled| < 10^P) with precision/scale as type parameters and storage tiers
Int32/Int64/Int128/Int256 (9/18/38/76 digits) matching Arrow/DuckDB widths;
Vector{Decimal{P,S,T}} is byte-identical to a columnar decimal buffer, and
reinterpret is the raw zero-copy constructor. DecimalValue{T}: runtime-scale
sibling for per-value-scale wire formats (PostgreSQL numeric).
- exact conversions to/from Integer/Rational/other decimals (InexactError/
OverflowError on failure); AbstractFloat conversion rounds half-even at the
target scale like every cross-representation float conversion in Base, with
an exact fast path through decompose and a BigInt fallback for exotica;
round(D, x, mode)/rescale are the explicitly-rounding conversions
- DecimalValue converts floats/rationals exactly (0.1 gets its true 55-digit
decimal expansion), normalized to minimal scale
- value-based ==/</hash across scales, precisions, and number types: hashing
goes through Base.decompose (with common 5-factor stripping so decimals hash
identically to equal Ints/Rationals/Floats), float comparison is exact
- Float64 conversion correctly rounded (exact-operand fast path, MPFR
fixed-precision slow path)
- value-preserving @generated promotion rules; scale-preserving representation
(1.20 keeps its scale but == 1.2)
- plain-form print, round-trippable typed show, simple correct parser
(SWAR fast path lands with the Parsers.jl integration)
All where-clauses constrain T <: StorageInt: unconstrained method tvars over a
union-constrained struct parameter lose specificity to less specific methods.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Semantics: + and - promote operands (value-preserving) and compute at that
type, throwing OverflowError when the exact result no longer fits — arithmetic
never invents a wider type than promotion, so folds stay type-stable. * is
exact (scale S1+S2, precision min(P1+P2, 76)); multiplying by a machine
integer preserves scale. / and divide(x, y, mode) round the true quotient at
scale max(S1,S2), half-even by default, via one reciprocal-multiply scale-up
and a single wide division — no second division for the rounding decision and
no global rounding state anywhere.
sum accumulates in the Int128 tier via Base.add_sum/reduce_first/reduce_empty
(narrow elements widen to Decimal{38,S,Int128}; type-stable, matching Base's
small-int sum behavior). round/trunc/floor/ceil operate at any digit count
within the type. DecimalValue gets the same operations with runtime scale
alignment.
All ops are allocation-free (verified) and differentially tested against a
Rational{BigInt} oracle across storage-width combinations, overflow
boundaries, and all rounding modes; 697k assertions total.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Use the exact rescaling path for fixed-scale parsing so string constructors follow the exact-or-throw conversion contract. Co-Authored-By: Codex <codex@openai.com>
Keep large Rational numerators and denominators in BigInt on the cold conversion path. This allows explicit rounding when either component exceeds UInt256. Co-Authored-By: Codex <codex@openai.com>
Compare a remainder with its divisor complement instead of doubling it. This preserves half classification when a UInt256 divisor exceeds 2^255. Co-Authored-By: Codex <codex@openai.com>
Route BigInt float decompositions through the arbitrary-precision cold path. Also parenthesize positive-exponent scaling so it shifts by the binary exponent before applying the decimal scale. Co-Authored-By: Codex <codex@openai.com>
Make widening idempotent at Int256 and define the representational quantum for runtime-scale values. Co-Authored-By: Codex <codex@openai.com>
Choose the smallest signed storage tier that covers both DecimalValue and machine-integer inputs. Cap the result at the supported Int256 tier. Co-Authored-By: Codex <codex@openai.com>
Formatting: two-digit-pair table with backwards fill, wide magnitudes split into 19-digit chunks via one magic divide each, integer and fraction runs emitted separately (no splicing). writedecimal!/decimallength are the byte-level wire-writer API (MySQL params, CSV output); string/print/show build on them. Allocation-free into caller buffers. Parsing: DecimalsParsersExt implements Parsers.parse/tryparse/parsenext for Decimal and DecimalValue targets on the Parsers 3.0 SWAR kernels (_digitrunend/_digits19 gulps), with a single-pass scanner that recognizes the token and accumulates the coefficient together — up to 77 retained significant digits plus a sticky tail, so rounding into any target is correct for arbitrarily long inputs (the 77th digit keeps exact ties decidable; the tail breaks them). decimal= and rounding= keywords supported; parsenext follows the tokenizer contract (longest well-formed token, incomplete exponents end the token before the marker, RC_OVERFLOW consumes). Zero allocations on parse/tryparse/parsenext. The core simple parser gains the same 77-digit+sticky semantics via shared _fitdecimal/_fitvalue and a sticky-aware _scaledown, so Base.parse and Parsers.parse agree on every input (differentially tested, 20k random + long-input cases, plus a BigInt oracle for wide/sticky rounding). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Use sign-aware magnitude limits for runtime-scale construction, scaling, multiplication, division, and parsing. Make typemin negation and absolute value throw because their positive result is not representable. Co-Authored-By: Codex <codex@openai.com>
Keep parsed coefficients unsigned until rescaling and range validation. Add direct parse support for Decimal{P,S} so partial target types do not recurse through Base.tryparse.
Co-Authored-By: Codex <codex@openai.com>
Parsing now runs a three-tier scanner: a UInt64 single-mantissa path for tokens of <= 19 digits (the money case), a UInt128 path for <= 38 digits (every common database decimal), and the 77-digit+sticky UInt256 path for the rest. _fitdecimal gains width-matched entries so narrow targets never touch 256-bit arithmetic. sum's Int128-tier widening becomes a pure reinterpret sign-extension. Measured (M2 Max, vs DecFP): money-string parse 14.3 ns vs 23.3 ns, 37-digit parse 22.1 ns vs 36.2 ns (was 30.8/53.6 before the tiers), 1000-element sum 0.78 ns/op vs 8.6 ns/op. bench/compare.jl added for the cross-package suite. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Round the exact decimal quotient directly at the target binary spacing on the cold path. This removes double rounding for Float16, Float32, and Float64 subnormals while preserving the existing Float64 fast path. Co-Authored-By: Codex <codex@openai.com>
Build the exact power-of-ten denominator at every runtime scale and cancel common factors before converting to the requested integer type. Use BigInt for unqualified runtime-scale Rational conversion. Co-Authored-By: Codex <codex@openai.com>
For Decimal{P,S,Int32/Int64} arrays every |unscaled| < 10^18, so an Int128
accumulator provably cannot overflow below 1.7e20 elements — drop the checked
adds and let the loop vectorize. 1M-element sum: 2.31 ms -> 0.166 ms
(0.17 ns/op), ahead of single-threaded polars (0.24) and duckdb (0.37).
dims/init keyword forms forward to the generic path; Int128-tier elements
keep checked add_sum.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Promote BigInt operands to the widest supported decimal tier. Use a checked arbitrary-precision cold path for integer multiplication while preserving scale. Co-Authored-By: Codex <codex@openai.com>
Implement scale-preserving round, trunc, floor, and ceil for DecimalValue. Route explicit mixed fixed/runtime division through the existing value-preserving promotion. Co-Authored-By: Codex <codex@openai.com>
Match Base rational source parameters exactly and add the Rational{Bool} intersection method. The package now has zero detected ambiguities with Base and Core.
Co-Authored-By: Codex <codex@openai.com>
Render Int256 as Decimals.Int256 in typed representations so repr evaluates after importing only Decimals. Co-Authored-By: Codex <codex@openai.com>
Construct exact MPFR operands from the decimal coefficient and scale, then divide directly at the requested precision and rounding mode. No global rounding state is changed. Co-Authored-By: Codex <codex@openai.com>
Validate DecimalValue rescale targets before arithmetic. Clamp unrepresentable rounding shifts so nearest modes return zero and directed modes report result overflow instead of indexing with a wrapped shift. Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Whole-value parsing of spans up to 16 bytes now runs a branch-predictable per-byte scanner ([+-]digits[.digits], two tight loops, no whitespace strip) that hands anything exotic to the general scanner unchanged. Empirically the scalar loop decisively beats a branch-minimal UInt128 SWAR variant on short varied tokens (11 vs 33 ns/op measured): the branches predict fine, and the SWAR path pays for clamped gathers, wide constants, and serial 128-bit mask dependencies. The general fallback is @noinline so the hot path stays small enough to inline into the public wrappers. Money-corpus parse: 14.8 -> 8.5 ns/op, vs rust_decimal 7.2 ns/op measured under identical background load (was a 2x gap; the residual is String-wrapper plumbing). Wide-tier and whitespace-padded inputs are unchanged, verified by 50k-string differential tests against the core parser. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
Co-Authored-By: Codex <codex@openai.com>
src/wideint.jl defines Int256/UInt256 as primitive types over LLVM's native i256 arithmetic — the same construction BitIntegers.jl uses, trimmed to what the decimal kernels need: arithmetic, bit ops, chunked shifts, comparisons, conversions with the machine integers, Bool, BigInt and floats, the checked-arithmetic hooks Base's gcd/Rational reach for, hashing, and Random samplers. Division is defined on the package's own Knuth kernels (LLVM has no i256 division on every supported Julia), which is what the kernels always used anyway. Every wide path benchmarks identically to the BitIntegers build (same codegen), the full suite passes unchanged, and test/wideint.jl checks the types against BigInt directly. The package now has no runtime dependency outside the standard library. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Fuda serializes Int256 coefficients straight to an IO, which BitIntegers had provided. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
UInt8(Int256(157)) threw: the signed truncation check was used for unsigned targets. Found by Avro's byte encoder; covered by test/wideint.jl. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The CI and documentation workflows carried branch triggers and a workflow_dispatch entry used while developing on a fork; they now match the usual pull_request + push-to-master + tags set. TagBot takes the deploy key under its conventional name. [extras] is sorted like [deps]. The review report under docs/ was an artifact of the development process and is removed; it remains in history. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rewrite file headers and kernel comments so each states what the code does and why, dropping references to other packages, measurements and asides. Also fold trivial forwarding methods in arithmetic.jl into the assignment form the surrounding code already uses, and drop three `using Base`/`using Core` names in wideint.jl that nothing refers to. Comments that were wrong about the code, now corrected: - arithmetic.jl `_wrapfree` claimed the predicate needs 2*maxmag to fit and that only the full-width Int128 tier fails it; it needs 3*maxmag, and both Decimal32 (P=9) and Decimal128 (P=38) fail it. - knuth.jl claimed a 128-bit divide libcall in the reciprocal path; `_divlu` is explicitly libcall-free, so Base's 128÷128 divrem is the only one. - wideint.jl described machine-integer shifts by a wide count as saturating; they narrow the count with `Int`. - wideint.jl listed hashing among the file's contents; there is none. - conversions.jl bounded decimal magnitudes at "10^76-ish"; the bound that makes the Int256 round-trip exact is 2^255. - literals.jl pointed `_strip10u64` at `_strip5s` instead of `_strip5u64`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Reword comments that narrated process rather than intent, fix a testset name that no longer matched its contents, and remove two dead expressions (an overwritten `want` in the Parsers sticky-rounding oracle, a no-op `sign` factor in the rational-rounding oracle). Correct the _mul256x64 comment, which claimed a no-overflow constraint the generated operands do not satisfy. No assertion is added, removed, weakened, or reordered. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…mments Dead code: `_parsetarget` in src/show.jl and `_parsegeneral` in the Parsers extension were defined but never called, and dropping `_parsegeneral` leaves the 9-argument `_parsewholewide` forwarding method with no callers either. src/random.jl re-imported Random, which Decimals.jl already imports. The Parsers extension's header claimed that with Parsers 2 loaded only the `Parsers.*` entry points go missing and Base.parse/tryparse keep working; in fact those Base methods are defined inside the same `@static if`, so they are absent too. The header now says so. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Plain, factual prose throughout: no superlatives, emoji, or memo framing,
claims made once with a pointer to the evidence, and impersonal voice in the
reference material. The README is trimmed to what the package is, install,
quick start, types, semantics, extensions, ecosystem, migration, and
performance, with performance figures taken from bench/PERF.md rather than
the superseded bench/RESULTS.md run.
docs/registered-decimals-audit.md becomes docs/comparison-with-0.5.1.md, a
neutral comparison keeping the API diff, the three 0.5.1 bugs, and the
migration implications. docs/ecosystem-compat.md keeps its substance with
plain section titles and word-valued tables.
Corrections found while checking the examples against the code:
- Integer(x) returns the storage tier's integer type, not Int256.
- sum widens to Int256 for the Int128 tier, not "unchanged for wider ones".
- var, cov and kurtosis stay decimal; std, cor and skewness return Float64.
Both halves match Rational's behaviour in Base.
- Decimal{9,2} is Decimal32{2}, so the narrower-precision example now uses
Decimal{7,2}.
- dec"1.2" == 1.2 is false, for the same reason 12//10 == 1.2 is false.
- parse examples now show the `using Parsers` the extension needs.
- string(x) allocates, so the README no longer claims everything does not.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…et environment Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
`AbstractDecimal` and `_scaleup` were imported into the Parsers extension but never referenced, and `_upow10` was imported and then still called as `Decimals._upow10` at three of its four call sites. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The copyright lines run oldest first. The README quotes four figures rather than five, all of them Decimals-column cells that bench/PERF.md carries directly (parse and multiply from the vs-library table, add from the 0.5.1-vs-1.0 table, live heap per element from the memory table), and points at bench/PERF.md and bench/charts for everything else. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
sum accumulates in a wider storage tier rather than always the Int128 one, and var stays decimal, matching Rational in Base. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The DecimalValue multiply methods computed the result sign twice, once with `!=` and once with `⊻`; they now compute it once. `_valueparts_big` gets the file's guard-clause form for its exact-remainder case and parenthesizes its four-element return like `_quotremround` does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
`_M64` in limbs.jl and `_printdecimal` in format.jl had no references anywhere in the package, tests or benchmarks. Comment corrections: `_tofloatdiv` described its divisor as "<= 203 bits" and its work as "one 256-bit division", but it accepts scales up to 5^110 and divides in a chain of limb-sized chunks; the broadcast header claimed the block-checked loops raise the same exception as the scalar path, when only the exception type is shared; and `rescale` said it re-scales a DecimalValue "in place", which no immutable value does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Move the Base.parse/tryparse methods up beside the other public entry points so the parsenext helpers stay together, align two argument lists that were indented off their opening paren, and note why `_fit` ignores the rounding mode for a DecimalValue target. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… line `_strip5s`'s early return computed `s == 0 ? s : 0`, which is 0 on both arms. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Every `# ---- name ----` banner is now surrounded by a blank line, which is what 23 of the 30 already did, and types.jl's lone `# accessors` becomes a banner like the rest. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…eration A machine integer shifted by an Int256/UInt256 count beyond any machine width now saturates to 0 (or -1 for an arithmetic right shift of a negative), as Base's shifts do, instead of failing the Int conversion. The overflow raised when aligning two DecimalValue scales now reports the + or - the caller invoked rather than an internal step name. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #121 +/- ##
============================================
- Coverage 100.00% 89.93% -10.07%
============================================
Files 14 21 +7
Lines 371 2255 +1884
============================================
+ Hits 371 2028 +1657
- Misses 0 227 +227 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
bench/PERF.md and the six chart PNGs stay in the tree; the scripts, corpora, result files, Rust and Python harnesses, chart generators, and the ecosystem gauntlet are in bench/harness.tar.xz, unpacked on demand (bench/README.md). The HTML chart renders are dropped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Brings in the complete 1.0 implementation with its history. See JuliaMath#107. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a proposal to move to a fixed-point decimal representation. Issue #107 discussed handing the package over so it could move in a fixed-point, data-oriented direction; @ViralBShah said he was comfortable with that and @stevengj raised real reservations about whether it is the right direction at all. This PR is the concrete thing to evaluate. If the consensus is that it belongs in a separate package rather than here, that is a fine outcome and I will do that instead; the code does not need this name to be useful.
AI disclosure
I want to be direct about how this was built. A large share of the code, tests, benchmarks, and documentation was generated with AI assistance (Claude Code, with adversarial review rounds by OpenAI's codex). I directed the design, reviewed every part of it, pushed back on and reworked a lot of it, ran and re-ran the test suites and benchmarks on my own machine, and made the API decisions. I am comfortable defending every line here as my own, and I am the maintainer who will be answering issues. If reviewers would prefer a different disclosure convention, tell me and I will follow it.
What it is
A ground-up fixed-point decimal package aimed at the data-systems world (Arrow, Parquet, DuckDB, Postgres, MySQL, CSV), released as 1.0.0 with a migration guide.
Decimal{P,S,T} <: Real: isbits, value =unscaled × 10⁻ˢ,|unscaled| < 10ᴾ,storage
Ttiered asInt32/Int64/Int128/Int256forP ≤ 9/18/38/76,the same width tiers Arrow, Parquet, and DuckDB use, so wire buffers reinterpret
without copies. The 256-bit integers are implemented in the package; there are no
runtime dependencies outside the standard library.
DecimalValue{T}: a runtime scale (unscaled + scale::Int32) for sources such asPostgreSQL
numeric, where the scale is per value.+/-promote and are checked (OverflowError, never silent rounding);*is exact;/rounds half-even atmax(S1, S2), withdivide(x, y, mode)forother modes. There is no global rounding state. Equality and hashing are by value.
convertis exact-or-throw.parseand
tryparseon decimal types come from the Parsers 3 extension (one parsingimplementation, where CSV and wire readers already are); the core keeps an exact
scanner for
dec"..."literals and string constructors.parsenext), Printf(digit-exact
%f/%e/%g), JSON 1.x (exact raw-digit numbers), LinearAlgebra(factorizations go through
float; genericlu!on a fixed-scale type silentlycorrupts).
Why a different core type, and what is given up
The 0.x
Decimalis a heap-backed arbitrary-precision floating decimal withcontext semantics: every operation rounds to a dynamically scoped precision. That
is the arbitrary-precision camp, and the libmpdec suggestion in #107 is the natural
next step for it. The uses I keep running into — ledgers, and data arriving from
Arrow, Parquet, DuckDB, and SQL drivers — need the other camp: a fixed
(precision, scale, width) triple, arithmetic that refuses to lose digits rather
than trimming them, and a layout where a
Vectorof values is the column buffer.A
BigIntcoefficient cannot be that; neither can a libmpdec context.What is genuinely lost relative to 0.x: precision beyond 76 digits, dynamically
scoped precision, and NaN/Inf.
big(x)returns aRational{BigInt}as the escapehatch, the same one Base offers for
Rational. On NaN/Inf specifically (#116): Ileft them out because a checked fixed-point type has no natural way to produce
them and every wire format I target represents "no value" as null rather than as
a decimal NaN; PostgreSQL's
numericNaN/Infinity are the one exception, and thePostgres integration reports them as a typed error for now rather than inventing
a policy. I would rather have that discussion in the open than pre-decide it.
Evidence
Full methodology, raw numbers, reproduction commands, and a section on where
other libraries are faster:
bench/PERF.md(charts inbench/charts/)."123456.78"6687 → 6.6 ns,add 281 → 0.31 ns, divide 2120 → 6.5 ns, sum of 1M 579 → 0.17 ms, 80 → 8 bytes
per element.
multiply 1.6 (24.2 / 3.75 / 5.05), divide 6.5 (34.8 / 7.7 / 45.5). FixedPointDecimals'
unchecked, wrapping add is faster in vectorized folds; single calls are equal.
Rational{BigInt},correctly-rounded float conversion with constructed ties, parser fuzzing, and a
differential check of every fast path against the exact route it shortcuts.
aarch64, plus a
juliac --trim=safejob (the package is trim-clean).Distributions, ForwardDiff, OrdinaryDiffEq, JuMP, Unitful, StaticArrays, and
JSON pass; the two failures are upstream
AbstractFloatrequirements thatRationalfails identically (docs/ecosystem-compat.md).Migration from 0.x
docs/src/migration.md. In short:Decimalstays the name;==/</hashbyvalue,
parse/stringround trips,round(x; digits), anddec"..."literalskeep working; the
Context/with_context/rounding(Decimal)API is gone(rounding is a call-site argument);
Decimal <: Realinstead ofAbstractFloat(that subtyping is what produced #114–#118);
exp/log/non-integer powers(#2, #115, #117, #118) are out of scope for a fixed-point type and go through
float, as they do forRational. Three 0.5.1 bugs found while comparing APIsare in
docs/comparison-with-0.5.1.md.What I am asking for
A review of the direction first, then the code. Integration branches for Arrow,
Parquet, Avro, MySQL, Postgres, and ODBC exist locally and wait on this
decision; nothing downstream is merged. If this lands: register 1.0.0 (same UUID,
breaking bump), then the downstream releases.
🤖 Generated with Claude Code