public RationalFraction abs return new RationalFraction Math abs this

1
2
3
public RationalFraction abs() {
return new RationalFraction(Math.abs(this.x), Math.abs(this.y));
}