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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user