<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/type-conversion",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Type conversion"
}
-->

# Type conversion

Perform element-wise floating-point to integer and integer to floating-point conversion.

## Topics

### Conversion between floating-point types

The functions in this group convert between single-precision and double-precision floating-point vectors.

[`doubleToFloat(_:)`](/documentation/Accelerate/vDSP/doubleToFloat(_:))

Returns single-precision values converted from a double-precision source.

[`floatToDouble(_:)`](/documentation/Accelerate/vDSP/floatToDouble(_:))

Returns double-precision values converted from a single-precision source.

[`convertElements(of:to:)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-2ejgr)

Converts single-precision values to double-precision values.

[`convertElements(of:to:)`](/documentation/Accelerate/vDSP/convertElements(of:to:)-698ye)

Converts double-precision values to single-precision values.

[`vDSP_vspdp`](/documentation/Accelerate/vDSP_vspdp)

Converts a single-precision vector to a double-precision vector.

[`vDSP_vdpsp`](/documentation/Accelerate/vDSP_vdpsp)

Converts a double-precision vector to a single-precision vector.

### Conversion between floating-point and integer types

  <doc://com.apple.accelerate/documentation/Accelerate/integer-to-single-precision-floating-point-conversion>

  <doc://com.apple.accelerate/documentation/Accelerate/integer-to-double-precision-floating-point-conversion>

  <doc://com.apple.accelerate/documentation/Accelerate/single-precision-floating-point-to-integer-conversion>

  <doc://com.apple.accelerate/documentation/Accelerate/double-precision-floating-point-to-integer-conversion>



---

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)