---
title: hashValue
framework: swift
role: symbol
role_heading: Instance Property
path: swift/double/hashvalue
---

# hashValue

The hash value.

## Declaration

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

## Discussion

Discussion Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution. important: hashValue is deprecated as a Hashable requirement. To conform to Hashable, implement the hash(into:) requirement instead. The compiler provides an implementation for hashValue for you.

## See Also

### Infrequently Used Functionality

- [init()](swift/double/init().md)
- [init(floatLiteral:)](swift/double/init(floatliteral:).md)
- [init(integerLiteral:)](swift/double/init(integerliteral:).md)
- [init(integerLiteral:)](swift/double/init(integerliteral:)-6hc7j.md)
- [Double.FloatLiteralType](swift/double/floatliteraltype.md)
- [Double.IntegerLiteralType](swift/double/integerliteraltype.md)
- [advanced(by:)](swift/double/advanced(by:).md)
- [distance(to:)](swift/double/distance(to:).md)
- [Double.Stride](swift/double/stride.md)
- [write(to:)](swift/double/write(to:).md)
