<story><title>TUI calculator for programmers working close to the bits</title><url>https://github.com/alt-romes/programmer-calculator</url></story><parent_chain></parent_chain><comment><author>gavinhoward</author><text>Shameless plug: my `bc` [1] can also display bits like this, as well as do bit operations.&lt;p&gt;It automatically detects how many bits your number must have and uses the minimum, or you can tell it the standard bit sizes or even use a custom bit size. It will handle 2&amp;#x27;s complement signed integers.&lt;p&gt;See the manual ([2]), especially the extended math library section ([3]).&lt;p&gt;It&amp;#x27;s also a normal `bc`, with every feature of all other implementations.&lt;p&gt;I should add floating point support, though.&lt;p&gt;[1]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&lt;/a&gt;&lt;p&gt;[2]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&amp;#x2F;src&amp;#x2F;branch&amp;#x2F;master&amp;#x2F;manuals&amp;#x2F;bc&amp;#x2F;A.1.md&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&amp;#x2F;src&amp;#x2F;branch&amp;#x2F;master&amp;#x2F;manuals&amp;#x2F;bc&amp;#x2F;...&lt;/a&gt;&lt;p&gt;[3]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&amp;#x2F;src&amp;#x2F;branch&amp;#x2F;master&amp;#x2F;manuals&amp;#x2F;bc&amp;#x2F;A.1.md#extended-library&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;git.yzena.com&amp;#x2F;gavin&amp;#x2F;bc&amp;#x2F;src&amp;#x2F;branch&amp;#x2F;master&amp;#x2F;manuals&amp;#x2F;bc&amp;#x2F;...&lt;/a&gt;</text></comment>
<story><title>TUI calculator for programmers working close to the bits</title><url>https://github.com/alt-romes/programmer-calculator</url></story><parent_chain></parent_chain><comment><author>ghewgill</author><text>For old school fans, the HP-16C [1] calculator provided these kinds of functions in a handheld calculator, in 1982. This was the only &amp;quot;programmer&amp;quot; calculator that HP has ever made.&lt;p&gt;There is a simulator (for Windows) available [2]. (No affiliation; but I made a simulator for the cousin calculator HP-15C [3]).&lt;p&gt;[1]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;hpmuseum.org&amp;#x2F;hp16.htm&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;hpmuseum.org&amp;#x2F;hp16.htm&lt;/a&gt;
[2]: &lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;hp16c.org&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;hp16c.org&lt;/a&gt;
[3]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;hp15c.com&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;hp15c.com&lt;/a&gt;</text></comment>