Networking · function
simMul
Multiply. Exact wherever the result is representable; see §2 of the header.
Explained in Networking and rollback.
function simMul(a: Sim, b: Sim): Simimport { simMul } from '@driftengine/network';Parameters
| Parameter | Type | Description |
|---|---|---|
a | Sim | |
b | Sim |
In depth
The split is at the fixed point, so high is the integer part and low the fractional part
scaled — both non-negative for a negative operand too, because Math.floor goes toward negative
infinity and the remainder is taken against that.