diff --git a/Sources/Xcore/Swift/Extensions/Numbers/NumberFormatter+Extensions.swift b/Sources/Xcore/Swift/Extensions/Numbers/NumberFormatter+Extensions.swift index 3b7e8d0b5..965530be0 100644 --- a/Sources/Xcore/Swift/Extensions/Numbers/NumberFormatter+Extensions.swift +++ b/Sources/Xcore/Swift/Extensions/Numbers/NumberFormatter+Extensions.swift @@ -43,7 +43,7 @@ extension NumberFormatter { /// string. /// - Returns: A string containing the formatted value of decimal number using /// the receiver’s current settings. - public func string(from number: Number?) -> String? { + public func string(from number: (some DoubleOrDecimalProtocol)?) -> String? { guard let number else { return nil }