i am working on an algorithm where i need to store numbers in range of 10-70 digits.moreover,only simple arithmetic functions will be used on them.i cannot use third party libraries,as they cause many errors,and are harder to use.instead,i want to store data in arrays and perform functions on them.for example,i would create an array of 100 ints,and store the data in it.for example,12345678910.03 can be stored as 1,2,3,4,5,6,7,8,9,1,0,11(11 indicates decimal here),0,3 or alternatively as 12,34,56,78,91,0,111,3 (111 indicates decimal here).how do i store numbers in such form?
i want it like - storeinarray(a)=1234567890242342423432.etc..
storeinarray(a)=addtoarray(a,b)
etc,etc etc.....
i have already thought about addition and subtraction functions,and even multiplication and division aren't much.the most confusing part is how to define them and store big numbers in them.i suspect i might not be able to use functions like % in case of large numbers,they ruin every thing as they go binary and mix up the bits.
i cannot use third party libraries,as they cause many errors,and are harder to use.
To be honest I doubt if a respectable 3rd pary library will have more bugs in than something you write yourself. Also it is unlikely to be harder to learn how to use a third party library than write your own from scratch.
i am still confused in how to install the library.i tried using gmp, ttmath,bigint and many other libraries,but they always get errors while compiling.i searched for help,but to no avail.finally,frustrated,i started building my own library.if could use them,i would have loved to.