How do I convert scientific notation to regular int For example: 1.23E2 I would like to convert it to 123
Thanks.
If you have your value as a String, you could use
int val = new BigDecimal(stringValue).intValue();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With