Skip to main content

Try it Live

Run Uint examples in the interactive playground

Uint.dividedBy(a: BrandedUint256, b: BrandedUint256): BrandedUint256

Divide Uint256 values. Floor division (rounds down). Parameters:
  • a: BrandedUint256 - Dividend
  • b: BrandedUint256 - Divisor
Returns: BrandedUint256 - Quotient (floor division) Example:
Defined in: primitives/Uint/dividedBy.ts:19
Throws error if divisor is zero.

See Also