Hacker News new | past | comments | ask | show | jobs | submit login

Bond prices are quoted in 32nds (or 256ths) of a dollar. How am I storing that?



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: