Skip to content

Remove Thousands Separators From CANdo Numeric Values - #551

Open
coderask wants to merge 1 commit into
normalize-bit-start-rangesfrom
remove-thousands-separators
Open

Remove Thousands Separators From CANdo Numeric Values#551
coderask wants to merge 1 commit into
normalize-bit-start-rangesfrom
remove-thousands-separators

Conversation

@coderask

Copy link
Copy Markdown
Contributor

Summary

The Ping message's Timestamp field in GRCAN.CANdo had a scaled max value written as 4,294,967,296 with commas as thousands separators. YAML parsers read this as the string '4,294,967,296' instead of the integer 4294967296, because commas are not part of YAML's numeric syntax.

Changes

  • Autogen/CAN/Doc/GRCAN.CANdo: Removed commas from the only thousands-separated number in the file (scaled max: 4,294,967,296 to scaled max: 4294967296).
  • Autogen/CAN/Src/DBCparser.pl: Removed the comma-stripping regex ($v =~ s/,//gsmx;) from the _to_number function, since no CANdo values contain commas anymore. Updated the header comment to reflect the new invariant (plain integers, no thousands separators).

Verification

grep -c ',[0-9]{3}' Autogen/CAN/Doc/GRCAN.CANdo confirms this was the only occurrence. perl -c DBCparser.pl passes.

@coderask
coderask requested a review from dchansen06 as a code owner August 29, 2026 17:16
@coderask
coderask force-pushed the remove-thousands-separators branch from 37c11e3 to d573839 Compare August 29, 2026 17:36
@coderask
coderask changed the base branch from main to normalize-bit-start-ranges August 29, 2026 17:36
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