Check out example codes for "get zero when divide two numeric values sql". It will help you in understanding the concepts better.

Code Example 1

SET @weight= CAST(@set1 AS float) / CAST(@set2 AS float);

Learn ReactJs, React Native from akashmittal.com