mirror of
https://github.com/sqlite/sqlite.git
synced 2026-01-06 08:01:16 +03:00
Fix one constant in the normalization logic. Improved error output
from atof1.test. FossilOrigin-Name: d3c48807100a358a70fdd799c8935eba1b765ace2e1ddea4475fd673006cb6da
This commit is contained in:
@@ -51,7 +51,13 @@ for {set i 1} {$i<20000} {incr i} {
|
||||
set y [db eval {SELECT $x=CAST(quote($x) AS real)}]
|
||||
if {!$y} {
|
||||
db eval {SELECT real2hex($x) a, real2hex(CAST(quote($x) AS real)) b} {}
|
||||
puts "\n!IN: $a $xf"
|
||||
puts ""
|
||||
if {$x<0} {
|
||||
puts "[format {!SCALE: %17s 1 23456789 123456789 123456789} {}]"
|
||||
} else {
|
||||
puts "[format {!SCALE: %16s 1 23456789 123456789 123456789} {}]"
|
||||
}
|
||||
puts "!IN: $a $xf"
|
||||
puts [format {!QUOTE: %16s %s} {} [db eval {SELECT quote($x)}]]
|
||||
db eval {SELECT CAST(quote($x) AS real) c} {}
|
||||
puts "!OUT: $b [format %.32e $c]"
|
||||
|
||||
Reference in New Issue
Block a user