]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Enhancements to the DECIMAL extension:
authordrh <>
Thu, 29 Jun 2023 20:28:03 +0000 (20:28 +0000)
committerdrh <>
Thu, 29 Jun 2023 20:28:03 +0000 (20:28 +0000)
commitec3e57fa92df277f6a92c5232f1b5af581fe9232
tree1f2e1ec5708222a50b0510a05e9987ecb75c7b7c
parent500ca334bd1d4f25aaa3e4ac58bdc8076dff345a
Enhancements to the DECIMAL extension:
(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
ext/misc/decimal.c
manifest
manifest.uuid
test/decimal.test