Calculations on large binary or integer numbers

I have a database with some large integer values, in the order of 500 bits. I read in the values from a yaml file as strings in decimal notation. I need to do some simple arithmetic and converting to hexadecimal. ‘int’ is limited to 64 bits and ‘decimal’ is limited to 28 decimal digits which is also far to small.

I could of course create a bigint library myself to operate on large integers but are there any builtin solutions or libraries that I could use?

A simple search in Search — Typst: Universe gives peano, which seems like something useful.

1 Like

Hi @Kenny_Ranerup, thanks for your question! Andrew’s response looks like it should answer your question; if so, be sure to give it a checkmark :ballot_box_with_check:. This will help others find the solution in the future. If something is missing, please let us know what so we can resolve your issue. Thanks!