I'm using a fraction to add to the current BigDecimal. It keeps returning an int. Not sure what I'm doing wrong.
//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);