---
title: "nextafter(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/nextafter(_:_:)-6sc0p"
---

# nextafter(_:_:)

Returns the next representable value of each element in a vector in the direction of the corresponding element in a second vector.

## Declaration

```swift
func nextafter(_ x: simd_float4, _ y: simd_float4) -> simd_float4
```

## See Also

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-5wdps.md)
- [ceil(_:)](simd/ceil(_:)-2omh0.md)
- [erf(_:)](simd/erf(_:)-4zsot.md)
- [erfc(_:)](simd/erfc(_:)-7acqr.md)
- [floor(_:)](simd/floor(_:)-56de3.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-1zefy.md)
- [fmod(_:_:)](simd/fmod(_:_:)-px8m.md)
- [hypot(_:_:)](simd/hypot(_:_:)-96sjx.md)
- [lgamma(_:)](simd/lgamma(_:)-3l63e.md)
- [pow(_:_:)](simd/pow(_:_:)-skyu.md)
- [remainder(_:_:)](simd/remainder(_:_:)-7o61f.md)
- [round(_:)](simd/round(_:)-8vqnv.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-3e79w.md)
- [tgamma(_:)](simd/tgamma(_:)-twdo.md)
- [trunc(_:)](simd/trunc(_:)-4xiyl.md)
