Generic function compare Integer and Float with 0

Thank you!