Use float for heuristics calculation