Instance Property


The number of bits required to represent significand.


var significandWidth: Int { get }


If self is not a finite non-zero number, significandWidth is -1. Otherwise, it is the number of fractional bits required to represent self.significand, which is an integer between zero and significandBitCount. Some examples:

  • For any representable power of two, significandWidth is zero, because significand is 1.0.

  • If x is 10, then x.significand is 1.01 in binary, so x.significandWidth is 2.

  • If x is Float.pi, x.significand is 1.10010010000111111011011, and x.significandWidth is 23.


From Protocol