AminetAminet
Search:
84451 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/conv/ConvertNum.lha

Mirror:Random
Showing:ppc-amigaosgeneric
No screenshot available
Short:V1.22 convert numbers (roman also)
Author:stoecker at amigaworld.com (Dirk Stoecker)
Uploader:stoecker amigaworld com (Dirk Stoecker)
Type:util/conv
Version:1.22
Architecture:m68k-amigaos
Kurz:Konvertiert Zahlen (auch roemisch)
Date:2000-06-28
Download:http://aminet.net/util/conv/ConvertNum.lha - View contents
Readme:http://aminet.net/util/conv/ConvertNum.readme
Downloads:4635

This program can convert numbers between decimal, hexadecimal, octal,
binary and roman number format. Additionally also ASCII chars are printed,
so ASCII to dec/hex and reverse is also possible. It supports negative
numbers for input as well. It displays ten number conversions together.

You have buttons, menus and mx radio buttons to select the wanted input
type. (A=ASCII, B=Binary, D=Decimal, H=Hexadecimal, O=Octal, R=Roman).
For CLI start you have same characters as keywords. Multiple inputs are
allowed for CLI start.

To enter more than one number in one pass, you need to sperate the numbers
by a | (123|454 enters both 123 and 454). More than 10 inputs are useless,
as ConvertNum only shows ten lines.

ConvertNum also prints a negative form for decimal numbers. USE THIS WITH
CARE. The results are useful only for real negative numbers! For computer
variables the negative numbers are marked by setting their first bit to 1.
But because the first bit may be the 8th, 16th or 32nd, it is not easily
possible to find the negative number. ConvertNum takes the first bit it
finds as negative marker. For positive numbers the output is useless
thus. :-)

Roman numbers are read in any possible format, but printed in shortest
format always. So an input numbers needs not to be printed as same in
output (XIIII is printed as XIV). Roman numbers cannot exceed 3888, as only
3 chararcters are allowed and M (=1000) is the highest. ConvertNum prints
roman number part below 3888 and adds a decimal number before that showing
number of missing M's.
So 3³MMMC means decimal 6100, which may be written as MMMMMMC.

Disadvantages:
 - it wont run on NTSC HiRes, as it needs at least 234 pixels window height
 - it always uses Topaz8-Font

Please contact me:

************************************************************************
* snail-mail:                  * e-mail:                               *
*   Dirk Stoecker              *   stoecker at amigaworld.com             *
*   Geschwister-Scholl-Str. 10 *   dstoecker at gmx.de                    *
*   01877 Bischofswerda        * world wide web:                       *
*   GERMANY                    *   http://home.pages.de/~stoecker/     *
* phone:                       * pgp key:                              *
*   GERMANY +49 (0)3594/706666 *   get with finger or from WWW pages   *
************************************************************************


Contents of util/conv/ConvertNum.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4007    7224  55.5% -lh5- 47cc Jun 22  2000 ConvertNum
[generic]                  271     826  32.8% -lh5- 810a Jun 22  2000 ConvertNum.info
[generic]                 1230    2642  46.6% -lh5- 5d1e Jun 22  2000 ConvertNum.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    5508   10692  51.5%            Jun 28  2000

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>