How are you trying to convert an integer (in your case its value is 1) to the decimal number DECIMAL (n, m) that have precision n, i.e. the total number of digits (n = 4 in your case) and the scale as t, i.e. the number of digits after the decimal (m = 4 in your case)
So, in your case, the decimal number will vary from (-0.9999 to 0.9999)
And therefore, when you try to convert any integer> 0 , it will be converted as 0.9999 (Maximum possible value)
and when you try to convert any integer <0 it will be converted as -0.9999 (the lowest possible value)
this type of conversion will cause an error if the server is running in strict mode.
source share