Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Idk though, is this a real concern with traditional finance

CME have contracts with 1/128ths of a dollar

they also have a tenancy to add another power of 1/2th every 10 years or so

this causes problem for fixed point, but amusingly this works perfectly well with floating point



One annoyance with floating point binary is when it happens to not line up so well with floating point decimal, for example

  >>> 0.1 + 0.2
  0.30000000000000004
which is still gonna round to 0.3, but ugh. Also, during aggregations, it's not nice how you get different answers depending on the order of operations when they shouldn't matter.


on CME they're not decimal though, they're binary fractions

so floating point works fine as floating point is binary fractions


Oh right, I didn't make the obvious connection to 128.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: