SHARE
TWEET

Untitled

a guest Jun 24th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. double value=0.14499999970197677;
  2. double rounded;
  3. rounded=Math.round( value* 1000.0) / 1000.0;
  4. rounded=Math.round( rounded* 100.0) / 100.0;
  5. System.out.println("Final value :" + rounded);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top