API Reference / canonicalChart · function

Function: canonicalChart()

function canonicalChart(chart, opts?): CanonicalChart;

Project a Chart into canonical (integer) form on a declared grid. Every continuous quantity quantizes under the single rounding rule; sign, sign-degree, house, dignities, retrograde, and the aspect list are then re-derived from the quantized values in integer arithmetic, so displayed numbers and discrete facts cannot disagree and one-ulp platform drift cannot flip anything.

Parameters

ParameterTypeDescription
chartChartA chart from Engine.chart / Engine.chartAt.
optsCanonicalOptionsGrid (default "arcsec") and the aspect options the chart was computed with.

Returns

CanonicalChart

The CanonicalChart; feed it to canonicalDigest for a content address.

Start building

Quickstart →