This is the wu-decimal Reference Manual, version 2.0.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 15:30:56 2020 GMT+0.
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
The main system appears first, followed by any subsystem dependency.
• The wu-decimal system |
Wukix Inc <engineering@wukix.com>
FreeBSD
Arbitrary-precision decimal arithmetic
Wu-Decimal enables convenient, arbitrary-precision decimal arithmetic through a reader macro, #$, and an update to the pprint dispatch table. Wu-Decimal uses the CL ratio type to store decimals, which enables numeric functions such as +, -, etc. to operate on decimal numbers in a natural way.
2.0.0
wu-decimal.asd (file)
wu-decimal.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The wu-decimal.asd file | ||
• The wu-decimal/wu-decimal.lisp file |
Next: The wu-decimal/wu-decimal․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
wu-decimal.asd
wu-decimal (system)
Previous: The wu-decimal․asd file, Up: Lisp files [Contents][Index]
wu-decimal (system)
wu-decimal.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The wu-decimal-asd package | ||
• The wu-decimal package |
Next: The wu-decimal package, Previous: Packages, Up: Packages [Contents][Index]
wu-decimal.asd
Previous: The wu-decimal-asd package, Up: Packages [Contents][Index]
wu-decimal.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported special variables | ||
• Exported functions | ||
• Exported types |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
wu-decimal.lisp (file)
Precision loss mode. Must be :error, :round, or :truncate
wu-decimal.lisp (file)
Next: Exported types, Previous: Exported special variables, Up: Exported definitions [Contents][Index]
e.g. (format t "~/wu-decimal:$/" #$3.14)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
e.g. (format t "~/wu-decimal:F/" #$3.14)
wu-decimal.lisp (file)
PARSE-DECIMAL parses a decimal number from the substring of STRING
delimited by START and END. Optional leading and trailing whitespace[1] is
ignored. The character parameters DECIMAL-MARK and GROUP-SEPARATOR provide
support for different (typically cultural) numerical conventions. For
convenience, a GROUP-SEPARATOR of T will be treated as the comma
character. The boolean SIGN-ALLOWED controls signage. EXPONENT-ALLOWED is a
boolean or a sequence controlling exponent notation. Exponent notation follows
the syntax for CL floats, with exception that the exponent marker must be ’e’
or ’E’ when EXPONENT-ALLOWED is T, or the exponent marker must be CHAR= to
some element of EXPONENT-ALLOWED when EXPONENT-ALLOWED is a
sequence. JUNK-ALLOWED behaves as it does in PARSE-INTEGER. PARSE-DECIMAL
returns two values: the parsed number of type DECIMAL, followed by the index
of STRING where the parse terminated.
Example: (parse-decimal "1,205.42" :group-separator #\,) => 60271/50, 8
wu-decimal.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
wu-decimal.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions | ||
• Internal conditions | ||
• Internal types |
Next: Internal conditions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
Given an integer, d, of the form 2^m*5^n, compute c such that c*d = c*(2^m*5^n) = 10^max(m,n). Returns c and max(m,n). See http://wukix.com/lisp-decimals#theory for background.
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
Converts an integer into a base 10 string. The sign is ignored.
wu-decimal.lisp (file)
wu-decimal.lisp (file)
wu-decimal.lisp (file)
Next: Internal types, Previous: Internal functions, Up: Internal definitions [Contents][Index]
wu-decimal.lisp (file)
condition (condition)
wu-decimal.lisp (file)
condition (condition)
wu-decimal.lisp (file)
condition (condition)
wu-decimal.lisp (file)
condition (condition)
Previous: Internal conditions, Up: Internal definitions [Contents][Index]
wu-decimal.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L W |
---|
Jump to: | F L W |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | $
C D E F H I P W |
---|
Jump to: | $
C D E F H I P W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C D I O P S T W |
---|
Jump to: | C D I O P S T W |
---|