decimal: design record DECIMAL.md (representation, scale, rounding, division) #332
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Part of #34.
Decimalhas no design record; its rules are only "exact base-10 arithmetic" in CONCEPT.md and a stub instd/number. Every later slice needs one fixed specification.Goal
Add
docs/design/DECIMAL.md(frontmatter and index entry perdocs/contributing) that fixes the decisions recorded in the comment[loop:torbscript] decided by the loopon #34, and links it from ROADMAP.md (planned natives), RELEASE.md section 2, FIRST-PARTY.md gap 12 and ENCODING.md (theExactcase).Acceptance criteria
ShowandTryFrom<String>grammar, addition/subtraction/multiplication exactness, division and remainder rules, rounding modes and the methods that take them, conversions from and toIntandFloat, literal handling, the runtime representation and the natives it needs, and the slices (#B, #C, #D of this split) with their order.torb docs skill docs skillsregenerated,--checkand the progressive-disclosure check green.Seed impact
None (docs only).
Size
One PR, one
docs(decimal)commit.torb_decimal_*) and ready natives #334Decimal#335Exactand conformance programs #336Decimalthat computes #34[loop:torbscript] refine: slice 1 of #34. Slices after it: #334 runtime, #335 literals, #336 std surface (the placeholders #B/#C/#D in the body mean these). Decisions are in the comment on #34. Docs only, no seed impact, one PR. next: implement
torb_decimal_*) and ready natives #334Decimalthat computes #34[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-12T22:02Z
[loop:torbscript] implement: PR #340 is open (docs only, branch loop/332-decimal-design); the worker was terminated by a gateway restart after pushing. next: waiting (merge gate review of PR #340)
torb_decimal_*) and ready natives #334Decimal#335Decimalthat computes #34Decimalthat computes #34