Is there any chance that this might do what you want
mod(239,floor(2 pi,10^-700))
That tries to do mod on 239, over the first 700 digits of 2 pi.
I just randomly picked 239 and chose 700 digits because you mentioned 700 digits above.
Before you trust this I urge you to try this with much smaller numbers and see if you get exactly the result that you are expecting. Please test this multiple different ways to try to make sure this is correct. The limited testing that I have done seems like it is doing this correctly.