title: How to get the exact value after multiplying and dividing a BigDecimal in java
body: <pre><code>import java.math.*;
  
  public class Test{
  public static void main(String args[]){
  
  BigDecimal initialValue = BigDecimal.valueOf(193);
  BigDecimal divider = BigDecimal.valueOf(3);
  BigDecimal result = initialValue.divide(divider, 2, RoundingMode.HALF_UP);
  System.out.println(initialValue + " / " + divider+" = "+result);
  BigDecimal retriveInitialValue = result.multiply(divider);
  System.out.println(result + " * " + divider+" = "+retriveInitialValue);
  
  }
  }
  </code></pre>
  
  <p>Output i am getting<br>
  193 / 3 = 64.33  </p>
  
  <p>64.33 * 3 = 192.99</p>
  
  <p>What i Expect 
  193 / 3 = 64.33  </p>
  
  <p>64.33 * 3 = 193</p>