Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


conv                         Command                         conv




Numeric base converter

conv [number]

conv converts number  to hexadecimal, decimal, octal, binary, and
ASCII characters, and  prints the results on the standard output.
If no  number is given, conv  reads one number per  line from the
standard input until you type the end-of-file character <ctrl-D>.

number may be  in hexadecimal, decimal, octal, binary, or charac-
ter format, as  shown below.  Each example represents the decimal
number 97.


          Base      Representation

          hexadecimal0x61
          hexadecimal#61
          decimal   97
          octal     0141
          binary    $1100001
          character `a'


conv  represents an  ASCII  control character  in  its output  by
preceding the  character by a carat `^'.   For example, it prints
<ctrl-X> as `^X'.  conv prints ``bad digit'' if anything is wrong
with the input.

***** See Also *****

bc, commands, conv, dd, od, units

***** Notes *****

conv represents  the input number  internally as a  long integer.
If number does not fit in a long, conv silently truncates it.



















COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026