added lif() and sumDigits functions to FMath.java