Question 1:
Assume Double d = 10.233444
. I want to convert and put result into same double, so that my value should be d= 10.23
;
Question 2:
Assume Double d = 10.235444
. I want to convert and put result into same double, so that my value should be d= 10.24
;
How to do this in java?