Hi, Because a and b variables are integers, the division truncates the decimal part of the result. You can make atleast one of the variables as Double and the result will be a double.
Regards, Satish Kumar Please mark my answer as a solution if it was helpful so it is available to others as a proper solution. If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Because a and b variables are integers, the division truncates the decimal part of the result. You can make atleast one of the variables as Double and the result will be a double.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.