Need to replace Null with 0 in formula

Need to replace Null with 0 in formula

I am struggling wiht a probably easy solution. I have 2 fetched fields (decimal) that I need to divide.

input.pubcost/input.allocation

if there is no returned value I need the field value t to be 0 not null. Can anyone advise of the solution?


Thank you.