<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vvremainderf(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vvremainderf"
  },
  "title" : "vvremainderf(_:_:_:_:)"
}
-->

# vvremainderf(_:_:_:_:)

Calculates the remainder after dividing each element in an array by the corresponding element in a second array of single-precision values.

```
func vvremainderf(_: UnsafeMutablePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Int32>)
```

## Discussion

### Parameters:

- parameter 1: The output array, *z*.
- parameter 2: The numerators input array, *y*.
- parameter 3: The denominators input array, *x*.
- termparameter 4: The number of elements in the arrays.

The following code shows an example of using [`vvremainderf(_:_:_:_:)`](/documentation/Accelerate/vvremainderf(_:_:_:_:)):

```objc
float x[] = {7, 4, 3, 4};
float y[] = {2, 5, 10, 30};
float z[4];
int n = 4;
 
vvremainderf(z, y, x, &n);
 
NSLog(@"z: [%lf, %lf, %lf, %lf]", z[0], z[1], z[2], z[3]);
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)