aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/decimal.c
Commit message (Collapse)AuthorAge
* Cleanup and commenting of the new DECIMAL extension code. No functionaldrh2023-06-29
| | | | | changes. FossilOrigin-Name: 5124481663eb8e74a9f861be98adb7075ea911fcff0216d98c658e955acadf14
* Enhancements to the DECIMAL extension:drh2023-06-29
| | | | | | | | | | (1) If the argument to decimal(X) is a floating point value (or an 8-byte blob), the floating point value is expanded into its exact decimal representation. (2) Function decimal_sci(X) works the same except it returns the result in scientific notation. (3) New function decimal_pow2(N) returns the full decimal expansion of the N-th integer power of 2. FossilOrigin-Name: 8baf8c10aecb261751f2b154356ab224b79d07230929ec9f123791278e601bba
* Fix harmless compiler warnings about unused function arguments.drh2023-06-29
| | | FossilOrigin-Name: 24927c1377314a10177da4a57191593440aa97fd0c5949fdf25a22df1d947600
* Add the decimal_sci(X) function to the Decimal extension for showing a decimaldrh2023-06-29
| | | | | value in scientific notation: +D.DDDDDe+DD FossilOrigin-Name: 61d4923913e88b980ce93db4f3f9f9d7ba3baaac724995c36c9b887c034accdc
* Fix lots of harmless, nuisance compiler warnings, mostly unused parameterdrh2022-12-23
| | | | | warnings in extensions. FossilOrigin-Name: c14bbe1606c1450b709970f922b94a641dfc8f9bd09126501d7dc4db99ea4772
* Fix a potential memory leak following OOM in the decimal extension.drh2021-05-03
| | | FossilOrigin-Name: 5127f7376776e6220eb8f83a30aa6b823c23ae0ac76e7ae41b33ca4e03ce236a
* Reorder declarations in the decimal extension for C89.drh2020-08-08
| | | FossilOrigin-Name: eface2da2c0b3daee2a5fd640cca3d3757d0930f62900fc810c50c104635241d
* More harmless compiler warning fixes.drh2020-07-18
| | | FossilOrigin-Name: 4c0d208c455abb983217a6dfea7634f677f8360fb57857e1421334fe7a5a23e2
* Fix a harmless compiler warning.drh2020-06-23
| | | FossilOrigin-Name: e1416c8b0628afa062d8cff40d0cd3576dc85460e55b21a271f88fcb608b9f59
* Avoid unnecessary normalization in decimal_sum(). Trim excess trailingdrh2020-06-23
| | | | | zeros off the result of decimal_mul(). FossilOrigin-Name: 0294ce071c863eb517e97beff31c3d95a4370e979a969415162302a90d3fda0e
* Add the decimal_mul() function.drh2020-06-22
| | | FossilOrigin-Name: 72eee04b67268ad38fd51ff32849f08c0a54cf1b481d5ecb11d77cc9c729ee03
* An extension for doing decimal arithmetic on strings.drh2020-06-22
FossilOrigin-Name: 4c3b85607feb53462ccc8b89bea699fdb132c402eae597afa33cc40a85c32329