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
| Parameter | Type |
|---|---|
chart | Chart |
opts | RemainderOptions |
Returns
{
payload: CanonicalChart;
remainders: CanonicalRemainders;
}
| Name | Type |
|---|---|
payload | CanonicalChart |
remainders | CanonicalRemainders |