Sumit Ringane

Sumit Ringane

  • NA
  • 195
  • 37k

How I get after decimal point three value with round

Dec 27 2017 7:30 AM
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.

Answers (3)