--- title: 2.1 Binary layout: default description: A Binary Math illustrative application using HTML, Liquid, and JavaScript. courses: { csp: {week: 5, categories: [3.B, 3.C]} } categories: [C4.4] type: ccc --- {% assign BITS = 8 %}
Plus Binary Octal Hexadecimal Decimal Minus
+1
00000000 0 0 0
-1
{% comment %} Liquid for loop includes last number, thus the Minus {% endcomment %} {% assign bits = BITS | minus: 1 %} {% comment %} Build many bits {% endcomment %} {% for i in (0..bits) %} {% endfor %} {% comment %} Value of bit {% endcomment %} {% for i in (0..bits) %} {% endfor %}
Turn on