Skip to content

M19: add two's-complement explorer - #20

Merged
pgousdal merged 6 commits into
mainfrom
m19-twos-complement-explorer
Sep 28, 2026
Merged

pgousdal merged 6 commits into
mainfrom
m19-twos-complement-explorer

Conversation

@pgousdal

Copy link
Copy Markdown
Contributor

M19 — Two's-complement explorer

Adds an interactive tool for understanding signed integer representation.

  • 8-, 16- and 32-bit widths
  • signed value input
  • exact two's-complement encoding with BigInt
  • simultaneous binary, hexadecimal, unsigned and signed views
  • signed range display
  • explanation of negative-value encoding
  • automated boundary and encoding tests
  • CI qualification with existing interactive tools
  • GitHub Pages integration

Key qualified examples include -1 -> 0xFF, -128 -> 0x80 and INT32_MIN.

@pgousdal
pgousdal merged commit 4e8b401 into main Sep 28, 2026
1 check passed
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