doz

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
BUGS
AUTHOR
SEE ALSO

NAME

doz − convert decimal numbers to dozenal

SYNOPSIS

doz [-e] [-k precision ] [ decimal number ]

DESCRIPTION

doz converts an arbitrary decimal number, integral or fractional, into dozenal. Accepts numbers in either standard or exponential notation. Optionally takes its input as the final argument on the command line, or can take its input from standard input.

OPTIONS

-e

Write the output in exponential notation.

-k precision

Print the resulting output with precision digits of precision. By default, the output is printed with four digits after the zenimal point. If there is no fractional part, no zenimal point or fractional digits will be printed, even if this option is specified. If the precision is too high, a message will be printed noting this, and the precision will be reduced to the system’s maximum.

dozenal number

If present, must be the final argument at the command line. Converts the given number into decimal.

BUGS

With very large numbers, fractional parts will get truncated. This is because the computer is only capable of representing numbers up to a given number of significant digits. This isn’t a bug, per se, but the program issues no warning for it, which probably is.

AUTHOR

Donald P. Goodman III <dgoodmaniii at gmail dot com>

SEE ALSO

dec(1), dozdc(1), tgmconv(1), dozdate(1), dozcal(1), dozword(1), dozpret(1)