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


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

See Also

Math Functions

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

Returns the ceiling of each element in a vector.

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

Returns the floor of each element in a vector.

func simd_muladd(simd_float4, simd_float4, simd_float4) -> simd_float4

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