Rational numbers for Java, why not?
Rational numbers for Java, why not?
A while back I built a science library supporting both physical and abstract dimensions. Almost immediately I discovered working with floating point numbers suck in that space and BigDecimal isn't much better in terms of managing scale wrt margin of error across calculations, Java doesn't make this easy. Rationals are in my view much better suited for science/math in that information cannot be unintentionally lost when using them. So I made a Rational for Java, and in the process _forced_ Java to work better with science and math.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Implementing a trackball with rational numbers
Primeval Numbers
2048 without numbers
Transcendental numbers for arbitrary-length One-Time Pads
Prime numbers generator
Factor RSA Numbers as a Game
Insights Beyond Numbers for Superior CX
Insights Beyond Numbers for Superior CX
The Music of Fibonacci and Prime Numbers
Web with numbers from 1 to Million with their properties