3 ms·
Son I sure hope thats not an Int. Its double, float or something else
by grezql 6y ago
Son I sure hope thats not an Int.
Its double, float or something else
- rjtobin 6y agoMight be stored as an int in cents (or whatever the tick size is).
- typon 6y agoThat's what I would do. Would never trust floating point numbers with something as important as currency.
- lotyrin 6y agoI sure hope "something else". I'd really like to think it's fixed precision.
- jetrink 6y agoTo be doubly pedantic, it probably is an int in many places, to avoid rounding errors.
- koheripbal 6y agoCorrect. In finance it is the norm to store all currency amounts as int.
- mcv 6y agoLet's hope it's a signed int, then.
- cpwright 6y agoOften trading systems represent prices as integral values; using fixed point. It eliminates some problems with rounding.