---
title: boolValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsnumber/boolvalue
---

# boolValue

The number object’s value expressed as a Boolean value.

## Declaration

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

## Discussion

Discussion A 0 value always means false, and any nonzero value is interpreted as true.

## See Also

### Accessing Numeric Values

- [int8Value](foundation/nsnumber/int8value.md)
- [decimalValue](foundation/nsnumber/decimalvalue.md)
- [doubleValue](foundation/nsnumber/doublevalue.md)
- [floatValue](foundation/nsnumber/floatvalue.md)
- [int32Value](foundation/nsnumber/int32value.md)
- [intValue](foundation/nsnumber/intvalue-95zzp.md)
- [int64Value](foundation/nsnumber/int64value.md)
- [int16Value](foundation/nsnumber/int16value.md)
- [uint8Value](foundation/nsnumber/uint8value.md)
- [uintValue](foundation/nsnumber/uintvalue.md)
- [uint32Value](foundation/nsnumber/uint32value.md)
- [uint64Value](foundation/nsnumber/uint64value.md)
- [uint16Value](foundation/nsnumber/uint16value.md)
