suppose I have value
double val=0.12345
i want round value from decimal third digit.
i want to get value with round
expected answer result = 0.123
if double vale=0.1235
ans result=0.124
if double val=0.1111
ans result=0.111
How I get the result?
please anyone guide me.