aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-06-29 16:48:25 +0000
committerdrh <>2023-06-29 16:48:25 +0000
commitcd88a74115626bfe6403a08b33cdcb67854bcc07 (patch)
tree6bbe334fa5b622a2f7156f891e0ff813b405f828 /src
parent9ea7632cca60f665b98d5b8d919f0e1c19c2563c (diff)
downloadsqlite-cd88a74115626bfe6403a08b33cdcb67854bcc07.tar.gz
sqlite-cd88a74115626bfe6403a08b33cdcb67854bcc07.zip
Change the (undocumented) dtostr() SQL function in the CLI so that it only
shows the first 26 significant digits - 10 more digits than are available in a 64-bit double. FossilOrigin-Name: d758859f6ab94ddb9b3ee6f6f5f24b16e2b7a7712761080cfc6540d68b5a0c97
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 9bad1232e..5bda7c9cd 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -1238,7 +1238,7 @@ static void shellDtostr(
){
double r = sqlite3_value_double(apVal[0]);
char z[200];
- sprintf(z, "%#+.70e", r);
+ sprintf(z, "%#+.26e", r);
sqlite3_result_text(pCtx, z, -1, SQLITE_TRANSIENT);
}