Use of C++ float/double in financial applications such as that in stock exchanges and/or brokerage houses.
Is the rounding gap resulting from using float in C++ considered immaterial/acceptable? Is it a normal practice? What about using a customized fixed-point class to do such math? What are your opinions? Thanks a lot in advance.
Be aware that the single / double issue is not from C++ but the machine architecture itself, you usually get exactly the same results from Excel VBA which in most other things has a very different view of the world.
A lot depends upon what you’re doing with it, errors accumulate, so you have to be careful when doing things where the i+1th result depends upon the i’th
NOTE I now post myTRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
😱😱 YOUR Algo trading bot with source code for cryptocurrency