Ошибка в теме, код ниже.
Ничего не округляется, объясните что на этот раз((
package com.javarush.task.task06.task0612;
/*
Калькулятор
*/
public class Calculator {
public static int plus(int a, int b) {
int result = a+b;
return result;
}
public static int minus(int a, int b) {
int result = a-b;
return result;
}
public static int multiply(int a, int b) {
int result = a*b;
return result;
}
public static double division(double a, double b) {
double result = a/b;
return result;
}
public static double percent(double a, double b) {
double result = (b/100)*a;
return result;
}
public static void main(String[] args) {
}
}