To ensure that the output of a real number is guaranteed with a dot as a separator, you must use the American layout, which is connected using:
Locale.setDefault(Locale.US);
a
import java.util.Locale;
public class Main {
public static void main(String[] args) {
double a=543.42375;
// the derivation of the value of the variable a with a sign and with an accuracy of 3 decimal places
}