Skip to content

intdiv

const intdiv: DualFn<(lhs, rhs) => number>

Defined in: packages/typegpu/src/std/numeric.ts:1227

Performs integer division on the passed in scalars. Equivalent to trunc(trunc(lhs) / trunc(rhs)). Coerces both arguments to integers if they’re floating point.