base 2 uses 0 and 1 as its digits
base 10 uses 0,1,2,3,4,5,6,7,8,9
base n uses 0 .. n-1 as it's list of digits where n is the number of digits avaliable
since in the case of base 1 n-1 would be 1-1 or 0 the entire list of digits would be 0..0. Making the answer 00 or in common base 10 "2".
If we consider that English speaking non programmers who treat 0 and null as the same value we can infer that the choice to use 0 as the entire list of digits in base 1 is flawed as general consensus would be to use 1 as the entire list of digits available in base 1. In this case the number after 0, which is effectively null, would be 1.
my $foo = null;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||