Returns each element in a vector rounded toward zero to the nearest integer.


func trunc(_ x: SIMD4<Double>) -> SIMD4<Double>

See Also

Math Functions

func ceil(SIMD4<Double>) -> SIMD4<Double>

Returns the ceiling of each element in a vector.

func floor(SIMD4<Double>) -> SIMD4<Double>

Returns the floor of each element in a vector.

func simd_muladd(simd_double4, simd_double4, simd_double4) -> simd_double4

Returns the multiply-add result for corresponding elements in three vectors.