fmtProperty

Formats a Double value to a string using numericPrecision significant figures (%g format). Adapts between fixed and scientific notation based on the magnitude of the value, ensuring that properties spanning many orders of magnitude (e.g. Lag-1 covariance, Von Neumann test statistic, kurtosis) are rendered with consistent precision rather than fixed decimal places. Returns "—" for Double.isNaN or Double.isInfinite values.

Use fmt instead when formatting columns in a multi-row comparison table where fixed decimal alignment is more important than adaptive precision.