CREATE FUNCTION [dbo].[IsZero] (
    @Number Decimal(18,2),
    @IsZeroNumber Decimal(18,2)
)
RETURNS FLOAT
AS
BEGIN
    IF (@Number = 0)
    BEGIN
        SET @Number = @IsZeroNumber
    END
    RETURN (@Number)
END