I have the following statement.
d = (pow(a,2*l+1)+1)/(val+1);
Here,
val,aandlare variables which are of no relation to the question.- the numerator can exceed long long int range.
- denominator is a divisor of the numerator.
But the final answer d will surely be under the long long int range. How to calculate d without loss of accuracy? I would prefer an answer without converting them to array and using grade school multiplication and division.