I'll see if I can replicate it this week. Look in
https://github.com/SensorsINI/jaer/blob/master/src/net/sf/jaer/biasgen/coarsefine/AddressedIPotCF.java#L279
That's where the computation of coarse and fine values is done.
```Java
/** Returns coarse and fine code values the result in current
closest to current. The resulting current will always be larger than
* the desired current (unless the current is larger than the
maximum possible), i.e. the fine code will be higher or equal to the
* actual floating point fine code value, i.e. the fine code
* @param current
* @return x value is coarse binary value, y value is fine binary value
*/
public Point computeCoarseFineValueFromCurrent(float current){
int newCoarseBinaryValue=computeSmallestCoarseBinaryValue(current);
// fine code is now round((desired current / coarse current )
* maxFineBitValue)
int newFineBinaryValue=
(int)Math.round((current/computeCoarseCurrent(newCoarseBinaryValue))*maxFineBitValue);
return new Point(newCoarseBinaryValue,newFineBinaryValue);
}
```