Numbers after floating point

Hello. I need to write numbers very precise (up to 1000 digits after floating point). Can anyone help me?
I'm not sure I wish to get involved in situations where such precision actually matters, but I suppose you could divide the number into smaller segments and store them separately as whatever the largest variable type in C++ is. As long as you know the order in which the segments are saved, you can easily reconstruct the original number.
for example
c=x/y where x=2, y=3; even if i choose long double type for (c) after few digits after dot there will be only zeros
like 0.666666662756000000000000000000000
but i need 1000 exact digits after dot ,I am new in programming area, just student and 1st year. So I'd appreciate tips including codes, I don't need whole solution just tips.
Please help
Still leaves the question "Why?!" though...

Anyway, that's the best I could come up with: split the end result in parts. Do the division, save the result, to the opposite calculation, then divide the remainder

Also, little tip: the fact that your long double includes a ton of zeroes means your 'x' and 'y' variables are of a lower precision. Dividing an int by an int will result in an int. If you want your precision to be long double, make your 'x' and 'y' also long doubles. You still won't get anywhere near 1000 digits though.
Topic archived. No new replies allowed.