MaxGraey / as-bignum

Fixed length big numbers for AssemblyScript 🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add overflow-free mulDiv method for all types

MaxGraey opened this issue · comments

Triplet of a * b / c integer operations may overflow. So will be great have u128.mulDiv operation which avoid overflow in multiplication part.

Need some real tests for #49

cc @willemneal