---
title: "fmod(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/fmod(_:_:)-7g7m"
---

# fmod(_:_:)

Returns the modulus after dividing each element in a vector by the corresponding element in a second vector.

## Declaration

```swift
func fmod(_ x: simd_double8, _ y: simd_double8) -> simd_double8
```

## See Also

### Math Functions

- [cbrt(_:)](simd/cbrt(_:)-9dsjc.md)
- [erf(_:)](simd/erf(_:)-293ey.md)
- [erfc(_:)](simd/erfc(_:)-vzkw.md)
- [fma(_:_:_:)](simd/fma(_:_:_:)-95vfo.md)
- [hypot(_:_:)](simd/hypot(_:_:)-8vke8.md)
- [lgamma(_:)](simd/lgamma(_:)-7t6g8.md)
- [nextafter(_:_:)](simd/nextafter(_:_:)-2xerr.md)
- [pow(_:_:)](simd/pow(_:_:)-9xmzf.md)
- [remainder(_:_:)](simd/remainder(_:_:)-326ci.md)
- [round(_:)](simd/round(_:)-7t6q.md)
- [simd_muladd(_:_:_:)](simd/simd_muladd(_:_:_:)-2vs0c.md)
- [tgamma(_:)](simd/tgamma(_:)-8qiri.md)
