FracCalc implementation with simple Java types