---
title: "CFConvertFloat32HostToSwapped(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfconvertfloat32hosttoswapped(_:)"
---

# CFConvertFloat32HostToSwapped(_:)

Converts a 32-bit float from the host’s native byte order to a platform-independent format.

## Declaration

```swift
func CFConvertFloat32HostToSwapped(_ arg: Float32) -> CFSwappedFloat32
```

## Parameters

- `arg`: The real value to convert.

## Return Value

Return Value A structure holding the real value in a canonical byte order.

## See Also

### Core Foundation Byte Order Utilities Miscellaneous Functions

- [CFByteOrderGetCurrent()](corefoundation/cfbyteordergetcurrent().md)
- [CFConvertDoubleHostToSwapped(_:)](corefoundation/cfconvertdoublehosttoswapped(_:).md)
- [CFConvertDoubleSwappedToHost(_:)](corefoundation/cfconvertdoubleswappedtohost(_:).md)
- [CFConvertFloat32SwappedToHost(_:)](corefoundation/cfconvertfloat32swappedtohost(_:).md)
- [CFConvertFloat64HostToSwapped(_:)](corefoundation/cfconvertfloat64hosttoswapped(_:).md)
- [CFConvertFloat64SwappedToHost(_:)](corefoundation/cfconvertfloat64swappedtohost(_:).md)
- [CFConvertFloatHostToSwapped(_:)](corefoundation/cfconvertfloathosttoswapped(_:).md)
- [CFConvertFloatSwappedToHost(_:)](corefoundation/cfconvertfloatswappedtohost(_:).md)
- [CFSwapInt16(_:)](corefoundation/cfswapint16(_:).md)
- [CFSwapInt16BigToHost(_:)](corefoundation/cfswapint16bigtohost(_:).md)
- [CFSwapInt16HostToBig(_:)](corefoundation/cfswapint16hosttobig(_:).md)
- [CFSwapInt16HostToLittle(_:)](corefoundation/cfswapint16hosttolittle(_:).md)
- [CFSwapInt16LittleToHost(_:)](corefoundation/cfswapint16littletohost(_:).md)
- [CFSwapInt32(_:)](corefoundation/cfswapint32(_:).md)
- [CFSwapInt32BigToHost(_:)](corefoundation/cfswapint32bigtohost(_:).md)
