diff --git a/Sources/StORM/Extract.swift b/Sources/StORM/Extract.swift index d9826e7..c5c3a8a 100644 --- a/Sources/StORM/Extract.swift +++ b/Sources/StORM/Extract.swift @@ -43,7 +43,7 @@ extension StORM { // Double // ======================================================================================= public static func double(_ data: [String: Any], _ name: String, _ def: Double? = Double()) -> Double? { - return data[name] as? Double ?? def + return Double((data[name] as? Float) ?? Float(def ?? 0.00)) } // =======================================================================================