Refactored function 'func' in MaxFloatFunction.java and MinFloatFunction.java. Removed if statement out of loop.