DEV Community

Dipesh Tumadiya
Dipesh Tumadiya

Posted on

Learn new method in java

I learn new method in Java 25V to give fixed floating point's
Syx:-
float a=23.23;
float b=12.23;
IO.println(String.format("%.2f",(a+b));

O/p :- 35.46

Top comments (0)