java - How to handle numbers greater than Double.MAX_VALUE -


i continuously adding stream of numbers , calculating average in java. maximum value of average can store double.max_value i.e 1.7976931348623157e308 after value becomes infinity. how can store values beyond double.max_value in java?

you may use java.math.bigdecimal class.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -