aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/decimal.c
diff options
context:
space:
mode:
authordrh <>2023-08-18 15:39:38 +0000
committerdrh <>2023-08-18 15:39:38 +0000
commit4d8eb16f075e1c18f0277b9702e9507bb1657b56 (patch)
treef95622eaec1ba4ca47430f5cf5f8142533b62f49 /ext/misc/decimal.c
parentd5a9d522fb8846d9919fdacfacecd29e89be29d1 (diff)
downloadsqlite-4d8eb16f075e1c18f0277b9702e9507bb1657b56.tar.gz
sqlite-4d8eb16f075e1c18f0277b9702e9507bb1657b56.zip
Rename the decimal_sci() function to decimal_exp().
[forum:/forumpost/fa027bb0ab|Forum post fa027bb0ab]. FossilOrigin-Name: c48f1be8cc505a7e2902c79e26c1d9a121ff5c55785ac812d2e09232b2414695
Diffstat (limited to 'ext/misc/decimal.c')
-rw-r--r--ext/misc/decimal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/misc/decimal.c b/ext/misc/decimal.c
index 06286f23f..9365ae68b 100644
--- a/ext/misc/decimal.c
+++ b/ext/misc/decimal.c
@@ -642,7 +642,7 @@ static Decimal *decimalFromDouble(double r){
/*
** SQL Function: decimal(X)
-** OR: decimal_sci(X)
+** OR: decimal_exp(X)
**
** Convert input X into decimal and then back into text.
**
@@ -650,7 +650,7 @@ static Decimal *decimalFromDouble(double r){
** point value is done. Or if X is an 8-byte blob, it is interpreted
** as a float and similarly expanded.
**
-** The decimal_sci(X) function returns the result in scientific notation.
+** The decimal_exp(X) function returns the result in exponential notation.
** decimal(X) returns a complete decimal, without the e+NNN at the end.
*/
static void decimalFunc(
@@ -853,7 +853,7 @@ int sqlite3_decimal_init(
void (*xFunc)(sqlite3_context*,int,sqlite3_value**);
} aFunc[] = {
{ "decimal", 1, 0, decimalFunc },
- { "decimal_sci", 1, 1, decimalFunc },
+ { "decimal_exp", 1, 1, decimalFunc },
{ "decimal_cmp", 2, 0, decimalCmpFunc },
{ "decimal_add", 2, 0, decimalAddFunc },
{ "decimal_sub", 2, 0, decimalSubFunc },