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

# greatestFiniteMagnitude

The greatest finite number representable by this type.

## Declaration

```swift
static var greatestFiniteMagnitude: Float { 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/float/pi.md)
- [infinity](swift/float/infinity.md)
- [nan](swift/float/nan.md)
- [signalingNaN](swift/float/signalingnan.md)
- [ulpOfOne](swift/float/ulpofone.md)
- [leastNormalMagnitude](swift/float/leastnormalmagnitude.md)
- [leastNonzeroMagnitude](swift/float/leastnonzeromagnitude.md)
- [zero](swift/float/zero.md)
