From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from feline.systems ([99.23.220.214]) by ur; Sun Sep 4 23:04:11 EDT 2016 Date: Sun, 4 Sep 2016 23:04:00 -0400 From: BurnZeZ@feline.systems To: 9front@9front.org Subject: pc(1) display functions Message-ID: <478bb24e2dbf2c2abddb669789e4ed67@meiling.znet> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shader cache-based cloud lifecycle solution Neat tool, but one thing is weird. > bin(n) Display n in binary. > oct(n) Display n in octal. > dec(n) Display n in decimal. > hex(n) Display n in hexadecimal. Why not also something like, // print base pb(n, b) Display n in base b. I understand the existing functions are meant to be shorthand for commonly used bases. I'm just proposing a shorthand for displaying a number in an arbitrarily specified base. I'm aware that truly arbitrary bases are not currently supported by mp(2), but at the same time, it may be desirable to print a number in some previously specified base (a variable). Furthermore, this would then be compatible with truly arbitrary bases if, in the future, mp(2) allows so.