decimal
decimal copied to clipboard
Why "DivisionPrecision" is a global variable?
In my opinion, in the case of high concurrency, if i modify it, it may cause thread safety problems. Why not design it as a local variable?
I would like to see a way to use the decimal library in a more concurrent-safe way, as well. I'm not using it with concurrency yet, but was hoping to. Forgive my ignorance, but is there a way to isolate all potentially changing global variables, so that each thread gets it's own copy?