Return value mod period in [0, period), preserving ordinary already-normalized values; negative zero becomes positive zero.
Callers validate their finite positive period. Computing the remainder once avoids the extra add/subtract of double modulo, which can perturb an in-range serialized continuity phase.
Return value mod period in [0, period), preserving ordinary already-normalized values; negative zero becomes positive zero.
Callers validate their finite positive period. Computing the remainder once avoids the extra add/subtract of double modulo, which can perturb an in-range serialized continuity phase.