For example: 23.7748884 and 344.456445 are the numbers I am working with. I am looking for the output with the format "000.0000". The desired result would be 023.7749 and 344.4564. I tried:
String.format("%.4f", 23.7748884) // Output: 23.7749, NOT OK! Desired: 023.7749
String.format("%.4f", 344.456445) // Output 344.4564, OK!