Modify return type array from int to float.