-2

Like it comes : 692589 i want the value similar : 69.23

I want to know more than one process to perform this task in java

ADM
  • 20,406
  • 11
  • 52
  • 83

1 Answers1

0

you can use DecimalFormat("0.00") to ensure the number is round to 2 decimal places. and maybe this can help you. https://mkyong.com/java/java-display-double-in-2-decimal-points/#:~:text=format(%E2%80%9C%25.,double%20to%202%20decimal%20places.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 01 '22 at 12:56