Assertion error
<p>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.</p>

<p>Code:</p>

<p>Method in class Temperature:</p>

<pre><code>public double getCelsius() {

        double c = 0;
        c =  ((this.temp_value - 32) * (5 / 9));
        return c;
    }
</code></pre>

<p>and here is the method call in class TestTemperature, which gives me an assertion error:</p>

<pre><code>Temperature t = new Temperature(212.0, "F");

assert t.getCelsius() == 100.0;  // &lt; error in this line
</code></pre>

<p>Help!</p>
