I see a lot of folks rolling hairy implementations for dealing with u128, u256. Integer square roots, etc. Are there any general purpose libraries that folks have seen?


1 Answer 1


The math library from the SPL repo is popular

  • thanks! it looks like it only has a handful of functions, might be enough for what i need though
    – joebuild
    Jul 20, 2022 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.