Repository navigation
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
Conversation
…with the date, time, Z and PIBHEX formats; every format against R
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.
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).