decimal to cgfloat code example Example: Decimal to Double conversion in Swift let someDouble = Double(truncating: someDecimal as NSNumber)