ApasScript.

Display Conversion

decimal

Renders an exact number as a decimal string to a given number of digits (defaults to 6) -- a display conversion only, the underlying value stays exact.

float

Converts a number to a native IEEE double and displays it -- a genuinely approximate conversion, unlike decimal()/scientific() which stay exact to the requested precision.

scientific

Renders an exact number in scientific notation to a given number of significant figures (defaults to 6).

repeating

Renders the exact repeating-decimal expansion of a fraction, e.g. 1/6 -> 0.1(6). An optional base (2-63) computes the expansion in that base instead of base 10.

table

Creates a mutable result table with one or more display-column headers. Use addRow() to append scalar, vector, or matrix values, then evaluate the table variable to render it.

addRow

Appends one complete row to a table. The number of values must match its headers; every value uses its normal APAScript display form.