Floating-point number Created 2026-10-20 Updated 2026-11-05
A finite floating-point number is a value representable in a specified floating-point representation. For fixed precision and exponent bounds, only finitely many real values are available. Most real numbers therefore require rounding before storage.
In binary arithmetic, is exact but is not: a finite binary fraction has a reduced denominator that is a power of two. This is a property of the representation, even before any arithmetic operation occurs. The associated IEEE encodings additionally include infinities and NaN; NaN is a special arithmetic datum rather than a real value.[ref]
Floating-point representation Created 2026-10-20 Updated 2026-11-05
A finite normal floating-point representation stores a sign, a significand and a bounded integer exponent, representing in radix . Fixing the number of significand digits gives roughly constant relative precision across a wide dynamic range; the gap between adjacent representable values grows with the exponent.
For example, in the binary numeral system. The normal leading binary digit is one and can be implicit in storage. Subnormal numbers use a different leading-digit rule near zero. IEEE formats also reserve encodings for signed zero, infinities and NaN, so the bit pattern cannot always be interpreted by the normal finite formula.[ref]
A sixteen-bit floating-point representation with one sign bit, five exponent bits and ten stored fraction bits. For sign , stored exponent and fraction integer , normal finite values are
The implicit leading one gives eleven significant binary digits. With , the value is , including signed zero at and subnormal numbers otherwise. The stored exponent is reserved for infinities at and NaN otherwise. The positive normal range is through ; the least positive subnormal number is .
NaN Created 2026-10-25 Updated 2026-11-05
NaN, meaning “not a number”, is a special datum in floating-point arithmetic used for an invalid real operation or a propagated undefined result. Examples include and the real square root of a negative number. It is distinct from the positive or negative infinity produced by some other exceptional operations.
Ordinary ordered comparisons involving NaN are false, and even equality of NaN with itself is false; use a dedicated NaN test rather than equality to detect it. A missing numerical estimate or a displayed NaN is consequently not a numerical zero and cannot serve as a valid p-value.[ref]
The displayed percentages use row denominators. The relevant comparison is therefore the conditional probability of each response within each recorded gender group, rather than the gender composition within a response category.
For the male group, strongly agree and agree. For the female group, the corresponding percentages are and . Combining the two agreement categories gives
The female group has more neutral responses, versus , and a higher combined disagreement percentage, versus . Thus the observed distributions differ in more than a single cell.
The Pearson chi-squared test assesses the null hypothesis of independence in the complete contingency table. Under that null, the expected frequency in a cell is its row total times its column total divided by 2,135. Recalculation gives
The reported p-value, approximately , gives very strong evidence against independence under the test's sampling assumptions. The minimum expected frequency is about , so sparse expected cells are not a problem here. The test concerns the full five-category distribution, not just the combined agreement comparison.
Cramér's V summarizes the magnitude without imposing an ordering on the gender labels:
The small p-value does not imply a nearly deterministic relationship. For example, the column-dependent Goodman and Kruskal's lambda is only about : choosing the modal response separately within the two groups reduces prediction errors from 1,546 to 1,506, a relative reduction of .
The positive Goodman and Kruskal's gamma must be interpreted using the table's chosen ordering. The agreement categories run toward less willingness, and gender has no intrinsic ordinal direction. A sign attached to an arbitrary group coding cannot replace the substantive comparison of conditional probabilities.
The NaN displayed for the likelihood-ratio calculation is not a valid p-value and is not evidence of no association. The Pearson chi-squared statistic can be independently recomputed from the positive cell counts. None of these calculations identifies a causal effect; the table has not controlled for income or other possible confounders.