It's actually super easy to increase the accuracy of LLMs.
import pytorch # or ollama or however you fucking dorks use this nonsense
from decimal import Decimal
I left out all the other details because it's pretty intuitive why it works if you understand why floats have precision issues.