Function 4 with float