title: Java-Returning BigDecimal as String: Returns int
body: <p>I'm using a fraction to add to the current BigDecimal. It keeps returning an int. Not sure what I'm doing wrong.</p>
  
  <pre><code>//within a class function    
  public BigDecimal result  = new BigDecimal(1);
  int x = 2;
  double g = 1/x;
  result = result.add(new BigDecimal(g));
  String s = result.toString();
  System.out.println(s);
  </code></pre>