The decNumber Library
Version 3.68
This document describes the decNumber ANSI C implementation of
General Decimal Arithmetic
; it is also available in
PDF
(Acrobat)
format.
The source code for this implementation is available from:
the International Components for Unicode
decNumber package
the open source
GCC repository
.
Contents:
Overview
– introduction and background
User’s Guide
– examples,
etc.
Simple addition
Compound interest
Passive error handling
Active error handling
Compressed format numbers
Packed Decimal numbers
Using decQuad
Using decQuad with decNumber
Modules
decContext
– context settings
decNumber
– core operations
decimal32, decimal64, and decimal128
– compressed format conversions
decSingle, decDouble, and decQuad
(decFloats) – compressed formats arithmetic,
etc.
decPacked
– packed decimal conversions
Additional Options
– customization, tuning, and testing parameters
Appendix A
– library performance
Appendix B
– changes list
Reproduced with permission from IBM © Copyright 1997, 2010 by International Business Machines Corporation