java - What datatype should i use to store non terminating rational numbers -


for example, when store 5/3 double, 1.0 returned. datatype should use real numbers 5/3 returns 1.67 in java?

say 5.0/3 , 1.666....6667.

5/3 integer, truncated 1.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -