---
title: greatestFiniteMagnitude
framework: swift
role: symbol
role_heading: Type Property
path: swift/double/greatestfinitemagnitude
---

# greatestFiniteMagnitude

The greatest finite number representable by this type.

## Declaration

```swift
static var greatestFiniteMagnitude: Double { get }
```

## Discussion

Discussion This value compares greater than or equal to all finite numbers, but less than infinity. This value corresponds to type-specific C macros such as FLT_MAX and DBL_MAX. The naming of those macros is slightly misleading, because infinity is greater than this value.

## See Also

### Accessing Numeric Constants

- [pi](swift/double/pi.md)
- [infinity](swift/double/infinity.md)
- [nan](swift/double/nan.md)
- [signalingNaN](swift/double/signalingnan.md)
- [ulpOfOne](swift/double/ulpofone.md)
- [leastNonzeroMagnitude](swift/double/leastnonzeromagnitude.md)
- [leastNormalMagnitude](swift/double/leastnormalmagnitude.md)
- [zero](swift/double/zero.md)
