I have written(shown below) a method getCelsius to convert from Fahrenheit to Celsius but when I run the program it shows me an assertion error.
Code:
Method in class Temperature:
public double getCelsius() {
        double c = 0;
        c =  ((this.temp_value - 32) * (5 / 9));
        return c;
    }
and here is the method call in class TestTemperature, which gives me an assertion error:
Temperature t = new Temperature(212.0, "F");
assert t.getCelsius() == 100.0;  // < error in this line
Help!
 
     
     
     
    