mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-04 09:30:38 -06:00
fix sqllogictest harness to use float rounding (#7426)
This commit is contained in:
@@ -1 +1 @@
|
||||
99.998669
|
||||
99.998787
|
||||
|
||||
@@ -225,7 +225,8 @@ func toSqlString(val interface{}) string {
|
||||
return fmt.Sprintf("%.3f", v)
|
||||
case decimal.Decimal:
|
||||
// exactly 3 decimal points for floats
|
||||
return v.StringFixed(3)
|
||||
res, _ := v.Float64()
|
||||
return fmt.Sprintf("%.3f", res)
|
||||
case int:
|
||||
return strconv.Itoa(v)
|
||||
case uint:
|
||||
|
||||
Reference in New Issue
Block a user