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.


Amit KumarRank #459 · 5.4K reputationPosted Dec 27, 2017, 2:44 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 27, 2017, 2:42 AM EST
Sumit Ringane156 reputationPosted Dec 27, 2017, 6:49 PM EST