1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Improved rounding policy.

FossilOrigin-Name: 6f1122e942b8269552daaf13d647d200d8546ec25f36310d67037c6b58d09976
This commit is contained in:
drh
2023-07-01 17:56:00 +00:00
parent 9ee9444a0a
commit 17c20bb15e
7 changed files with 20 additions and 19 deletions

View File

@ -34,8 +34,8 @@ for {set iTest 1} {$iTest<=50000} {incr iTest} {
set r2 $x1.$x4
set ans [string trimright $r2 0]
if {[string match *. $ans]} {set ans ${ans}0}
do_test $iTest/$n/${r}5=>$ans {
set x [db one "SELECT round(${r}5,$n)"]
do_test $iTest/$n/${r}6=>$ans {
set x [db one "SELECT round(${r}6,$n)"]
} $ans
}