public class SupitsIsLazy {
public static void main(String[] args) {
float num = 6.554165f;
float round = Round(num,2);
System.out.println("Do your homework Supits, yet, here you have the float rounded to two digits: " + round);
}
public static float Round(float Rval, int Rpl) {
float p = (float)Math.pow(10,Rpl);
Rval = Rval * p;
float temporal = Math.round(Rval);
return (float)temporal/p;
/* Java is for Gays */