code wiki / fx

topic: fx

12 modules sharing the fx name family (derived from the tree's prefix discipline).

The 'fx' topic family in the Nishi sovereign ecosystem provides deterministic Q16.16 fixed-point math support, with modules like fx handling core operations and fx_exp_test validating exponential functions through KAT. The nx_fx_f64_lit module ensures decimal and long literals pack consistently, while nx_fx_f64_const enables compile-time constant folding for precise f64 values. These modules work together to ensure reliable, predictable arithmetic across the ecosystem.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
fx.nxdeterministic Q16.16 fixed-point math. 35823
fx_exp_test.nxKAT for the fixed-point base-2 exponential family613
fx_gate.nxthe gate for the Q16.16 fixed-point math 49 modules import.1082
fx_log2_test.nxKAT for the fixed-point binary logarithm.582
nx_fx.nxdeterministic Q16.16 fixed-point math.25515
nx_fx_f64_const.nxLN39 fixture: `const NAME: f64 = EXPR` folds at compile time to the SAME bits the242
nx_fx_f64_elide.nxChecks if a mapped memory region contains a non-zero value at index 1 when index 0 is zero.91
nx_fx_f64_lit.nxLN36 + LN40 fixture: decimal exponent literals and long literals pack to the SAME bits252
nx_fx_f64_nan.nxLN38 fixture: IEEE-754 unordered compares. Every ordered predicate on a NaN operand is233
nx_fx_gate.nxF984 INDEPENDENT GATE: exact multi-currency conversion.1165
nx_fx_int_overflow_refused.nxLN40 planted REFUSAL: this program must NOT compile. The integer literal81
nx_fx_lib.nxF984: EXACT MULTI-CURRENCY on the sovereign ledger.996