Skip to content

Numeric formats: Z and PIBHEX in DATA LIST, PIBHEX in STRING and PRINT, NUMBER with the date, time, Z and PIBHEX formats; every format against R - #458

Merged
TonisOrmisson merged 1 commit into
mainfrom
dm-nf
Nov 26, 2026
Merged

TonisOrmisson merged 1 commit into
mainfrom
dm-nf

Conversation

@TonisOrmisson

Copy link
Copy Markdown
Contributor

R audit of the numeric formats of the guide, written and read (234 written and 93 read values of F, COMMA, DOT, DOLLAR, PCT, E, N, Z and PIBHEX). The seven formats the engine had agree with R and the rules it already records; the first run differed only in my oracle. Gaps closed: DATA LIST could not read Z (zoned decimal) or PIBHEX, STRING and PRINT/WRITE could not write PIBHEX, NUMBER read none of JDATE, QYR, MOYR, WKYR, DATETIME, YMDHMS, TIME, MTIME, Z and PIBHEX. PIBHEX takes exactly its width in hexadecimal digits (even width, at most 16, refused otherwise); Z takes the sign and last digit from the last character ({ and A to I are +0 to +9, } and J to R are -0 to -9). Left out, reason in planning section 8: P, PK, IB, PIB, RB and RBHEX (binary bytes or a machine-specific image; the engine decodes data files as text). Whole engine and syntax suites, clippy, overlap check pass. Review: medium, two rounds on the worktree; round one: stale comment, the odd-width check, rounding, PRINT accepting PIBHEX (all fixed); round two: nits only (a lone period in a PIBHEX field is missing now; the rest follows the guide or is old behaviour).

…with the date, time, Z and PIBHEX formats; every format against R
@TonisOrmisson
TonisOrmisson merged commit 008edbc into main Nov 26, 2026
3 checks passed
@TonisOrmisson
TonisOrmisson deleted the dm-nf branch November 26, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant