kaustubhgupta / Hacktoberfest

This is for the information that the repository has been excluded by the Hacktoberfest team from the event. This was done to maintain the quality standards and promote good quality open source contributions.
MIT License
55 stars 277 forks source link

Updated " C++/fah_to_cel_function(CB).cpp " #613

Closed arpitbaheti2002 closed 3 years ago

arpitbaheti2002 commented 3 years ago

Hi, I went through the C++ program that converts temperature from Fahrenheit scale to Celcius scale (C++/fah_to_cel_function(CB).cpp) and found an issue in it.

The function fahToCel() has an integer variable c that stores temperature in Celcius. Now, if I convert 100 deg. Fahrenheit to Celcius the output should be 37.78 but due to integer datatype, it is displaying 37.

Fixes: #622

arpitbaheti2002 commented 3 years ago

I have updated my description. Can you please review it?