I'm writing some financial code that will deal with stock and crypto prices, so I need something more precise than 0.01. I'd like a numeric type that can go to any precision and doesn't round off like
Double. Is there something people are using, or some standard options on the menu?
I understand it's a performance hit if it doesn't fit in a CPU register, and that "exact" means I can't do divisions without choosing a precision and getting a remainder. Eg:
10 / 3 might be 0.3 with remainder 0.1, or 0.333 with remainder 0.001, etc.