Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grezql
· 6y ago · 0 comments
Son I sure hope thats not an Int. Its double, float or something else
Comments
[–]
jetrink
6y ago
To be doubly pedantic, it probably is an int in many places, to avoid rounding errors.
[–]
koheripbal
6y ago
Correct. In finance it is the norm to store all currency amounts as int.
[–]
mcv
6y ago
Let's hope it's a signed int, then.
[–]
lotyrin
6y ago
I sure hope "something else". I'd really like to think it's fixed precision.
[–]
cpwright
6y ago
Often trading systems represent prices as integral values; using fixed point. It eliminates some problems with rounding.
[–]
rjtobin
6y ago
Might be stored as an int in cents (or whatever the tick size is).
[–]
typon
6y ago
That's what I would do. Would never trust floating point numbers with something as important as currency.