---
title: applyAbsoluteValue()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gknoise/applyabsolutevalue()
---

# applyAbsoluteValue()

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

## Declaration

```swift
func applyAbsoluteValue()
```

## Discussion

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

## See Also

### Applying Operations to Noise Values

- [invert()](gameplaykit/gknoise/invert().md)
- [raiseToPower(_:)](gameplaykit/gknoise/raisetopower(_:)-14715.md)
- [clamp(lowerBound:upperBound:)](gameplaykit/gknoise/clamp(lowerbound:upperbound:).md)
- [remapValues(toCurveWithControlPoints:)](gameplaykit/gknoise/remapvalues(tocurvewithcontrolpoints:).md)
- [remapValues(toTerracesWithPeaks:terracesInverted:)](gameplaykit/gknoise/remapvalues(toterraceswithpeaks:terracesinverted:).md)
