significandWidth
The number of bits required to represent the value’s significand.
Declaration
var significandWidth: Int { get }Discussion
If this value is a finite nonzero number, significandWidth is the number of fractional bits required to represent the value of significand; otherwise, significandWidth is -1. The value of significandWidth is always -1 or between zero and significandBitCount. For example:
For any representable power of two,
significandWidthis zero, becausesignificandis1.0.If
xis 10,x.significandis1.01in binary, sox.significandWidthis 2.If
xis Float.pi,x.significandis1.10010010000111111011011in binary, andx.significandWidthis 23.