When I format a double number it returns me with a comma, but I need it to return with a period. By the way I'm with the IDE NetBeans
double importe = (catidad * precioUnit);
System.out.println("double : " + importe);
System.out.println("double : " + String.format("%.2f", importe));
System.out.format("double : %.2f", importe);
returns:
run:
double : 5.699999999999999
double : 5,70
double : 5,70
I want you to return me with a point