diff --git a/const.go b/const.go index f104534..6474405 100644 --- a/const.go +++ b/const.go @@ -30,7 +30,7 @@ const ( DataTypeFloat32 = "float32" DataTypeFloat64 = "float64" - DataTypeDouble = "float64" + DataTypeDouble = "double" DataTypeFloat = "float" DataTypeIntSlice = "[]int" diff --git a/filter.go b/filter.go index 354f819..426cad0 100644 --- a/filter.go +++ b/filter.go @@ -220,6 +220,12 @@ func (f *filter) getValue(dataType string, sourceValue gjson.Result, defaultValu case DataTypeFloat32: fallthrough case DataTypeFloat64: + fallthrough + case DataTypeFloat: + fallthrough + case DataTypeDouble: + fallthrough + case DataTypeNumber: var ( err error val float64