unsaon pag translate ni sa java = 12.33 x 10 to the power of 8.
any idea? thanks a lot.
You can use double:
Or you could use Java BIgDecimal ... although much slower than standard data types (slower than double), they preserve precision based on your given number (128 bit precision, double is only 64 bit wide) ...Code:double db1 = 12.33e8;
Code:// Create a BigDecimal number via a string BigDecimal bd1 = new BigDecimal("12.33E8"); double dbl1 = 12.33e8; // multiply a big decimal by a double ... (actually squaring it) BigDecimal bd2 = bd1 * dbl1;
Similar Threads |
|