---
title: isZero
framework: swift
role: symbol
role_heading: Instance Property
path: swift/float/iszero
---

# isZero

A Boolean value indicating whether the instance is equal to zero.

## Declaration

```swift
var isZero: Bool { get }
```

## Discussion

Discussion The isZero property of a value x is true when x represents either -0.0 or +0.0. x.isZero is equivalent to the following comparison: x == 0.0. let x = -0.0 x.isZero        // true x == 0.0        // true

## See Also

### Querying a Float’s State

- [isFinite](swift/float/isfinite.md)
- [isInfinite](swift/float/isinfinite.md)
- [isNaN](swift/float/isnan.md)
- [isSignalingNaN](swift/float/issignalingnan.md)
- [isNormal](swift/float/isnormal.md)
- [isSubnormal](swift/float/issubnormal.md)
- [isCanonical](swift/float/iscanonical.md)
- [floatingPointClass](swift/float/floatingpointclass.md)
