API Reference / canonicalChartWithRemainders · function

Function: canonicalChartWithRemainders()

function canonicalChartWithRemainders(chart, opts?): {
  payload: CanonicalChart;
  remainders: CanonicalRemainders;
};

Canonical payload plus its remainder set. In "refine" mode (default: one grid finer than the base) each residue is the integer difference between the finer-grid quantization and the base leaf lifted onto the finer grid, so finer = ratio * base + residue exactly and composeRemainders can rebuild the finer payload. Time residues are integer microseconds, distance residues integer nano-AU, always. In "bits" mode each value is the pre-quantization double as big-endian hex (lossless, platform-local, engine-API-only).

Parameters

ParameterType
chartChart
optsRemainderOptions

Returns

{
  payload: CanonicalChart;
  remainders: CanonicalRemainders;
}
NameType
payloadCanonicalChart
remaindersCanonicalRemainders

Start building

Quickstart →