primitive - Can the range for double in Java be extended? -


the data type double covers range 4.94065645841246544e-324d 1.79769313486231570e+308d. if have deal numbers less 4.94065645841246544e-324d, there data type can use?

is there data type can use?

yes1. might use bigdecimal. linked javadoc says (in part) provides immutable, arbitrary-precision signed decimal numbers.

1bigdecimal not primtive type (and range of primtive types mandated specification).


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -