The number of bits required to represent the value’s significand.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
var significandWidth: Int { get }
Discussion
If this value is a finite nonzero number, significand is the number of fractional bits required to represent the value of significand; otherwise, significand is -1. The value of significand is always -1 or between zero and significand. For example:
For any representable power of two,
significandis zero, becauseWidth significandis1..0 If
xis 10,xis.significand 1in binary, so.01 xis 2..significand Width If
xis Float.pi,xis.significand 1in binary, and.10010010000111111011011 xis 23..significand Width