經安全檢測,此網站為安全網站,請放心前往原始網址!

android - java equivalent to printf("%*.*f") - Stack Overflow

System.out.print(String.format("%.1f",floatValue));. This prints the floatValue with 1 decimal of precision ...

stackoverflow.com

網址安全性掃描由 google 提供