I want to set a long number to a double number. The problem is I want to return it as decimal format. For ex: I have a long number
long a = 123456;
then I cast double b = (double) a;
Now b show 1.234**E**5
.
I want b show exactly like a: 123456.0
. Don't want "E" here
I cast it to String and then agian parse to double. Like this
b = Double.parseDouble(new Long(a).toString()));
Anyone have better idea pls share it to me. Thank you.