github.com/matrixorigin/matrixone@v0.7.0/cgo/external/decNumber/readme.txt (about) 1 This is the readme.txt for the decNumber package. It includes 2 instructions for compiling and testing the package; please read them. 3 --------------------------------------------------------------------- 4 5 decNumber is distributed in two forms; as a complete package from 6 the International Components for Unicode (ICU) site (under an as-is 7 license), or as a collection of Open Source files from the GCC source 8 repository (under the GPL license). 9 10 If you are using the GCC files, you can obtain the documentation, the 11 example files mentioned below, and this readme from the General 12 Decimal Arithmetic web page -- http://speleotrove.com/decimal/ (the 13 URL for the open source files is also linked from there). 14 15 16 The ICU package 17 --------------- 18 19 The ICU package includes the files: 20 21 * readme.txt (this file) 22 23 * ICU-license.html 24 25 * decNumber.pdf (documentation) 26 27 * The .c and .h file for each module in the package (see the 28 decNumber documentation), together with other included files. 29 30 * The .c files for each of the examples (example1.c through 31 example8.c). 32 33 The ICU package is made available under the terms of the ICU License 34 (ICU 1.8.1 and later) included in the package as ICU-license.html. 35 Your use of that package indicates your acceptance of the terms and 36 conditions of that Agreement. 37 38 39 To use and check decNumber 40 -------------------------- 41 42 Please read the appropriate license and documentation before using 43 this package. If you are upgrading an existing use of decNumber 44 (with version <= 3.37) please read the Changes Appendix for later 45 versions -- you may need to change the DECLITEND flag. 46 47 1. Compile and link example1.c, decNumber.c, and decContext.c 48 For instance, use: 49 50 gcc -o example1 example1.c decNumber.c decContext.c 51 52 Note: If your compiler does not provide stdint.h or if your C 53 compiler does not handle line comments (// ...), then see the 54 User's Guide section in the documentation for further information 55 (including a sample minimal stdint.h). 56 57 The use of compiler optimization is strongly recommended (e.g., 58 -O3 for GCC or /O2 for Visual Studio). 59 60 2. Run example1 with two numeric arguments, for example: 61 62 example1 1.23 1.27 63 64 this should display: 65 66 1.23 + 1.27 => 2.50 67 68 3. Similarly, try the other examples, at will. 69 70 Examples 2->4 require three files to be compiled, like Example 1. 71 72 Example 5 requires decimal64.c in addition to the core modules. 73 74 Example 6 requires decPacked.c in addition to the core modules. 75 76 Example 7 requires only example7.c decContext.c and decQuad.c 77 78 Example 8 requires example8.c, decContext.c, and decQuad.c, plus 79 decNumber.c, decimal128.c, and decimal64.c (the latter 80 for shared tables and code) 81