digits: egyptian hieroglyphs numerals
[sheet.git] / base.plp
index 7d31a4dbaf79094b29f44c94aa7f82856ba1fdf8..f1ed06cfa42265c32a2719ae78819896a7e4a55e 100644 (file)
--- a/base.plp
+++ b/base.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'number bases',
-       version => 'v1.1',
+       version => '1.1',
        description => [
                "Cheat sheets summarising various software programs and standards.",
        ],
@@ -13,7 +13,7 @@ Html({
 });
 
 my @cols = (2, 6, 8, 9, 10, 12, 16, 18, 20);
-my @morecols = (2, 3, 4, 6, 8, 9, 10, 12, 16, 18, 20, 24, 32, 36, 64);
+my @morecols = (2 .. 6, 8, 9, 10, 12, 16, 18, 20, 24, 32, 36, 64);
 my @char = (0..9, 'A'..'Z', 'a'..'z');
 :>
 <h1>Number bases</h1>
@@ -30,7 +30,7 @@ use List::Util 'sum';
 print '<tr><th>';
 print '<th>', $_ for @morecols;
 for my $max (100, 255, 1024) {
-       print '<tr><th>', $max;
+       print '<tr><th>', $max;
        for my $radix (@morecols) {
                printf '<td style="text-align:right">%.1f',
                        sum(map { radix_economy($_, $radix) } 1 .. $max) / $max;
@@ -38,7 +38,7 @@ for my $max (100, 255, 1024) {
 }
 :></table>
 
-<h2>Fractions</h2>
+<h2>Reciprocal fractions (n⁻¹)</h2>
 <table>
 <:
 print '<tr><th>';
@@ -94,10 +94,9 @@ for my $n (2 .. $count) {
 
 <hr>
 
-<h2>Duplication</h2>
+<h2>Duplication (2ⁿ)</h2>
 <table>
 <:
-use 5.010;
 sub showint {
        my ($int, $radix) = @_;
        my @digits;