Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed why we use float point in temperature conversion

+11 votes
asked Jan 28, 2023 by meghana (220 points)
closed Feb 19, 2023 by Admin
closed with the note: answered

4 Answers

0 votes
answered Jan 28, 2023 by Ritik gupta (150 points)
because temperature may be in decimle value.

ex- 32.5 degree

or 34.777 degree
+2 votes
answered Feb 5, 2023 by SACHIN YADAV (260 points)
We take float variable for temperature because temperature is not always a integer value,it is also a decimal values and for decimal values we use float variable so we use float variable for temperature representation

temperature of boiling water=100°c

But temperature of a human body = 37.5°c
0 votes
answered Feb 5, 2023 by Naveenreddy (260 points)
Because temperature is measured in decimal values to find the exact temperature of a place we use decimal values also hence we will use float for measuring the temperature.
0 votes
answered Feb 18, 2023 by Arun Bisht (140 points)
Because float data type can store decimal values and as temperature can be in decimal therefore it is advisable to use float.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...