<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFConvertFloat32HostToSwapped(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFConvertFloat32HostToSwapped"
  },
  "title" : "CFConvertFloat32HostToSwapped(_:)"
}
-->

# CFConvertFloat32HostToSwapped(_:)

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

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

## Parameters

`arg`

The real value to convert.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)