<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CGFloat-swift.struct/hashValue",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Foundation",
      "CoreFoundation"
    ],
    "preciseIdentifier" : "s:14CoreFoundation7CGFloatV9hashValueSivp"
  },
  "title" : "hashValue"
}
-->

# hashValue

The hash value.

```
var hashValue: Int { get }
```

## Discussion

**Axiom:** `x == y` implies `x.hashValue == y.hashValue`.

> Note:
> The hash value is not guaranteed to be stable across different invocations of the same program.  Do not persist the hash value across program runs.

---

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)