Both the expression should have same datatype

Both the expression should have same datatype

I'm getting the following error when using a conditional statement in a formula field:

Error in statement at line number 0
Both the expression should have same datatype

Here is my code:

  1. IF(input.Spend1>0,0,input.Spend1)

What am I doing wrong?