diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/utilities/doc/bases.hlp | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/doc/bases.hlp')
-rw-r--r-- | pkg/utilities/doc/bases.hlp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkg/utilities/doc/bases.hlp b/pkg/utilities/doc/bases.hlp new file mode 100644 index 00000000..01f822ef --- /dev/null +++ b/pkg/utilities/doc/bases.hlp @@ -0,0 +1,43 @@ +.help bases Jan85 utilities +.ih +NAME +bases -- Convert an integer to hex, octal, and binary +.ih +USAGE +bases i +.ih +PARAMETERS +.ls i +Integer for base conversion. +.le +.ls nbyte = 0 +Number of bytes of precision. Allowed values are "0", "1", "2", or "4". +.le +.ls verbose = yes +Print labels for columns? +.le +.ih +DESCRIPTION +The BASES task converts an input integer value to equivalent values in +other base systems. +.ih +EXAMPLES +1. Convert the number 256 (in various bases). Note the 'x' and 'b' suffix +appended to the value to change the input base value: + +.nf + ecl> bases 256 # decimal input + dec hex octal 7654 3210 7654 3210 + 256 0100x 000400b 0000 0001 0000 0000 + ecl> bases 256x # hex input + dec hex octal 7654 3210 7654 3210 + 598 0256x 001126b 0000 0010 0101 0110 + ecl> bases 256b # octal input + dec hex oct 7654 3210 + 174 AEx 256b 1010 1110 + +.fi + +.ih +SEE ALSO +.endhelp |