<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/integer-to-single-precision-floating-point-conversion",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Integer to single-precision floating-point conversion"
}
-->

# Integer to single-precision floating-point conversion

Perform element-wise integer to single-precision floating-point conversion.

## Topics

### 8-bit integer to floating point conversion

The functions in this group convert integer values of a given size to floating-point vectors.

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-7479i)

Returns a vector of floating-point values converted from signed 8-bit integer values.

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-8jgqh)

Returns a vector of floating-point values converted from unsigned 8-bit integer values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-3bomv)

Converts 8-bit signed integers to single-precision values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-7jdvz)

Converts 8-bit unsigned integers to single-precision values.

[`extern void vDSP_vflt8(const char *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vflt8)

Converts a vector of signed 8-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltu8(const unsigned char *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltu8)

Converts an array of unsigned 8-bit integers to single-precision floating-point values.

### 16-bit integer to floating point conversion

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-5os5n)

Returns a vector of floating-point values converted from signed 16-bit integer values.

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-2xoiz)

Returns a vector of floating-point values converted from unsigned 16-bit integer values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-93xn9)

Converts 16-bit signed integers to single-precision values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-1ajdy)

Converts 16-bit unsigned integers to single-precision values.

[`extern void vDSP_vflt16(const short *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vflt16)

Converts a vector of signed 16-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltu16(const unsigned short *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltu16)

Converts an array of unsigned 16-bit integers to single-precision floating-point values.

### 24-bit integer to floating point conversion

[`extern void vDSP_vflt24(const vDSP_int24 *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vflt24)

Converts a vector of signed 24-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltu24(const vDSP_uint24 *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltu24)

Converts a vector of unsigned 24-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltsm24(const vDSP_int24 *__A, vDSP_Stride __IA, const float *__B, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltsm24)

Converts and scales a vector of signed 24-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltsmu24(const vDSP_uint24 *__A, vDSP_Stride __IA, const float *__B, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltsmu24)

Converts and scales a vector of unsigned 24-bit integers to single-precision floating-point values.

[`struct vDSP_int24`](/documentation/Accelerate/vDSP_int24)

A data structure that holds a 24-bit signed integer value.

[`struct vDSP_uint24`](/documentation/Accelerate/vDSP_uint24)

A data structure that holds a 24-bit unsigned integer value.

### 32-bit integer to floating point conversion

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-8b7ni)

Returns a vector of floating-point values converted from signed 32-bit integer values.

[`static func integerToFloatingPoint<T, U>(T, floatingPointType: U.Type) -> [U]`](/documentation/Accelerate/vDSP/integerToFloatingPoint(_:floatingPointType:)-23d97)

Returns a vector of floating-point values converted from unsigned 32-bit integer values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-7pknu)

Converts 32-bit signed integers to single-precision values.

[`static func convertElements<U, V>(of: U, to: inout V)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-9orm4)

Converts 32-bit unsigned integers to single-precision values.

[`extern void vDSP_vflt32(const int *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vflt32)

Converts a vector of signed 32-bit integers to single-precision floating-point values.

[`extern void vDSP_vfltu32(const unsigned int *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_vfltu32)

Converts an array of unsigned 16-bit integers to single-precision floating-point values.



---

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)