---
title: radix
framework: swift
role: symbol
role_heading: Type Property
path: swift/float80/radix
---

# radix

The radix, or base of exponentiation, for a floating-point type.

## Declaration

```swift
static var radix: Int { get }
```

## Discussion

Discussion The magnitude of a floating-point value x of type F can be calculated by using the following formula, where ** is exponentiation: x.significand * (F.radix ** x.exponent) A conforming type may use any integer radix, but values other than 2 (for binary floating-point types) or 10 (for decimal floating-point types) are extraordinarily rare in practice.
