As in title, most of implementation of rational numbers is written with little care for:
- overflows
- underflows
- traping / defining limit cases
Maybe even add support for arbitrary long fractions? It can be usefull for example in playing PI where consecutive notes are defined by which segment was taken in arithmetic coding
As in title, most of implementation of rational numbers is written with little care for:
Maybe even add support for arbitrary long fractions? It can be usefull for example in playing PI where consecutive notes are defined by which segment was taken in arithmetic coding