Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created October 19, 2019 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malikkurosaki/43afeb2b0f1c54bac2610fc7c026db25 to your computer and use it in GitHub Desktop.
Save malikkurosaki/43afeb2b0f1c54bac2610fc7c026db25 to your computer and use it in GitHub Desktop.
java pembulatan 1000 seribu

jajva pembulatan 1000 seribu

 BigDecimal decimal = new BigDecimal((double)1005873/1000);
                decimal = decimal.setScale(0,RoundingMode.UP);
                Log.i(TAG, "perhitunganTotal: "+decimal.intValue()*1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment