---
title: "NSConvertSwappedDoubleToHost(_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsconvertswappeddoubletohost(_:)"
---

# NSConvertSwappedDoubleToHost(_:)

Performs a type conversion.

## Declaration

```swift
func NSConvertSwappedDoubleToHost(_ x: NSSwappedDouble) -> Double
```

## Discussion

Discussion Converts the value in x to a double value. This function does not actually swap the bytes of x. You should not need to call this function directly.

## See Also

### Related Documentation

- [NSSwapBigDoubleToHost(_:)](foundation/nsswapbigdoubletohost(_:).md)
- [NSSwapLittleDoubleToHost(_:)](foundation/nsswaplittledoubletohost(_:).md)

### Functions

- [NSConvertHostDoubleToSwapped(_:)](foundation/nsconverthostdoubletoswapped(_:).md)
- [NSConvertHostFloatToSwapped(_:)](foundation/nsconverthostfloattoswapped(_:).md)
- [NSConvertSwappedFloatToHost(_:)](foundation/nsconvertswappedfloattohost(_:).md)
- [NSHostByteOrder()](foundation/nshostbyteorder().md)
- [NSSwapBigDoubleToHost(_:)](foundation/nsswapbigdoubletohost(_:).md)
- [NSSwapBigFloatToHost(_:)](foundation/nsswapbigfloattohost(_:).md)
- [NSSwapBigIntToHost(_:)](foundation/nsswapbiginttohost(_:).md)
- [NSSwapBigLongLongToHost(_:)](foundation/nsswapbiglonglongtohost(_:).md)
- [NSSwapBigLongToHost(_:)](foundation/nsswapbiglongtohost(_:).md)
- [NSSwapBigShortToHost(_:)](foundation/nsswapbigshorttohost(_:).md)
- [NSSwapDouble(_:)](foundation/nsswapdouble(_:).md)
- [NSSwapFloat(_:)](foundation/nsswapfloat(_:).md)
- [NSSwapHostDoubleToBig(_:)](foundation/nsswaphostdoubletobig(_:).md)
- [NSSwapHostDoubleToLittle(_:)](foundation/nsswaphostdoubletolittle(_:).md)
- [NSSwapHostFloatToBig(_:)](foundation/nsswaphostfloattobig(_:).md)
