We are about to switch to a new forum software. Until then we have removed the registration on this forum.
When I transforme a float to String with two differents methods. The first return a String with dot and the second return a String with comma, it's weird. It's only on OSX or the result is the same or all platfrom ?
float f = 1.2 ;
String s_1 = Float.toString(f);
String s_2 = String.format("%.2f", f) ;
println(s_1) ;
println(s_2) ;
Answers
it's a Locale thing.
https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html
Thx for the answer, sorry for my lating thx :)