Returns the integer truncation of each element in a vector of single-precision values.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Xcode 11.0+
Framework
- Accelerate
Declaration
static func trunc<U>(_ vector: U) -> [Float] where U : Accelerate Buffer, U.Element == Float