---
title: "floatingPointToInteger(_:integerType:rounding:)"
framework: accelerate
role: symbol
role_heading: Type Method
path: "accelerate/vdsp/floatingpointtointeger(_:integertype:rounding:)-33dtm"
---

# floatingPointToInteger(_:integerType:rounding:)

Returns double-precision values converted to integer values.

## Declaration

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

## Parameters

- `vector`: The source vector.
- `integerType`: The integer type that the function converts the source values to.
- `rounding`: The rounding mode.

## See Also

### Type Methods

- [absolute(_:)](accelerate/vdsp/absolute(_:)-9c3ge.md)
- [absolute(_:)](accelerate/vdsp/absolute(_:)-5ehc1.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-9x5jn.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-1wu9x.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-657bd.md)
- [absolute(_:result:)](accelerate/vdsp/absolute(_:result:)-4pigo.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-9mv1a.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-2ftxc.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-53nh9.md)
- [add(_:_:)](accelerate/vdsp/add(_:_:)-7swvf.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-2531u.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-2w0o9.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-338hl.md)
- [add(_:_:result:)](accelerate/vdsp/add(_:_:result:)-3vzwi.md)
- [add(_:to:count:result:)](accelerate/vdsp/add(_:to:count:result:)-g1dk.md)
