The floating-point value with the same sign and exponent as this value, but with a significand of 1.0.
Required.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
var binade: Self { get }
Discussion
A binade is a set of binary floating-point values that all have the same sign and exponent. The binade
property is a member of the same binade as this value, but with a unit significand.
In this example, x
has a value of 21
, which is stored as 1
, where **
is exponentiation. Therefore, x
is equal to 1
, or 16
.
let x = 21.5
// x.significand == 1.34375
// x.exponent == 4
let y = x.binade
// y == 16.0
// y.significand == 1.0
// y.exponent == 4