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

# vvlogb(_:_:_:)

Calculates the unbiased exponent of each element in an array of double-precision values.

```
func vvlogb(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)
```

## Discussion

### Parameters:

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

For a nonzero finite floating-point number `f`, `logb` is defined to be the integer that satisfies `abs(f) = significand * 2**logb(f)`, with `significand` in `[1,2)`.

If `x` is `+/-0`, `y` is set to `-inf`.

If `x` is `+/-inf`, `y` is set to `+inf`.

If `x` is NaN, `y` is set to `NaN`.

---

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)