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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -