Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JackFr
on June 29, 2023
|
parent
|
context
|
favorite
| on:
Fintech engineering mistakes (2022)
Bond prices are quoted in 32nds (or 256ths) of a dollar. How am I storing that?
Brystephor
on July 13, 2023
[–]
Still in a long, you can represent micro "cents" (e.g. 1,000,000 = 1 unit of the currencies smallest unit, for USD thats cents). It's just a matter of scaling things up or down to the level of granularity that you require.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: