Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
converting ints from base 10 to base x
- X-seq: zsh-users 1325
- From: Louis-David Mitterrand <mito@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: converting ints from base 10 to base x
- Date: Wed, 18 Feb 1998 15:39:21 -0500
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxxx
- Reply-to: mito@xxxxxxxxxxxxxx
Sorry to ask such a simple question, but I've been through the whole
documentation without success.
Is it possible to print a number from, say base 10, to base 2? For
example I want to know how 255 looks in base 2, how do I do that? I know
how to print any number in base 10 with $[16#ff], but the reverse?
Thanks.
--
Louis-David Mitterrand
http://www.aparima.com
mito@xxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author