MCPcopy Index your code
hub / github.com/apache/groovy / extract

Method extract

benchmark/bench/pidigits.java:99–104  ·  view source on GitHub ↗
(int j)

Source from the content-addressed store, hash-verified

97 }
98
99 public int extract(int j){
100 BigInteger bigj = BigInteger.valueOf(j);
101 BigInteger numerator = (q.multiply(bigj)).add(r);
102 BigInteger denominator = (s.multiply(bigj)).add(t);
103 return ( numerator.divide(denominator) ).intValue();
104 }
105
106 public Transformation qrst(int q, int r, int s, int t){
107 this.q = BigInteger.valueOf(q);

Callers 2

digitMethod · 0.80
isSafeMethod · 0.80

Calls 5

divideMethod · 0.80
addMethod · 0.65
intValueMethod · 0.65
valueOfMethod · 0.45
multiplyMethod · 0.45

Tested by

no test coverage detected