<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKNoise/applyAbsoluteValue()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKNoise(im)applyAbsoluteValue"
  },
  "title" : "applyAbsoluteValue()"
}
-->

# applyAbsoluteValue()

Replaces all negative values in the noise field with their positive absolute values.

```
func applyAbsoluteValue()
```

## Discussion

For example, a value of `-0.75` becomes `0.75`, but positive values such as `0.5` remain unchanged.

![](images/com.apple.gameplaykit/media-2556374@2x.png)

---

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)