<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/floatingPointToInteger(_:integerType:rounding:)-9z84u",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO22floatingPointToInteger_11integerType8roundingSayq_Gx_q_mAC12RoundingModeOtAA0A6BufferRzAA01vb1_F11ConvertableR_Sf7ElementRtzr0_lFZ"
  },
  "title" : "floatingPointToInteger(_:integerType:rounding:)"
}
-->

# floatingPointToInteger(_:integerType:rounding:)

Returns single-precision values converted to integer values.

```
static func floatingPointToInteger<T, U>(_ vector: T, integerType: U.Type, rounding: vDSP.RoundingMode) -> [U] where T : AccelerateBuffer, U : vDSP_IntegerConvertable, T.Element == Float
```

## Parameters

`vector`

The source vector.

`integerType`

The integer type that the function converts the source values to.

`rounding`

The rounding mode.

## Discussion

---

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)