---
title: "convertElements(of:to:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/convertelements(of:to:)-698ye"
---

# convertElements(of:to:)

Converts double-precision values to single-precision values.

## Declaration

```swift
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Float
```

## Parameters

- `source`: The source vector.
- `destination`: On output, the source values converted to single-precision values.

## See Also

### Conversion between floating-point types

- [doubleToFloat(_:)](accelerate/vdsp/doubletofloat(_:).md)
- [floatToDouble(_:)](accelerate/vdsp/floattodouble(_:).md)
- [convertElements(of:to:)](accelerate/vdsp/convertelements(of:to:)-2ejgr.md)
