So I try to display temperatures from 100 down to -273 celsius.
Why are this only showing from 25 to -273????
If I change to lower limit to for example -4, everything is OK.
Now I have another problem, which was my main problem:
My task is to find all temperatures that are same in celsius and fahrenheit with accuray of 1 degree. How this code doesnt find them, it doesn't show anything? I'm using the double to int trick so if to temperatures are same within one degree, it makes same integer out of them. For example if we have 1.9 and 1.0 -> both changes to 1 so they are within one degree.
Whether you use Celsius or Fahrenheit as your unit of measurement, any given liquid will freeze at the same point on a graph and boil at another point. The upshot is that there will only ever be a single point on your graph where the two different scales meet, hence one numeric value in both Celsius and Fahrenheit that is the same.
The formulae to convert C to F =>
F = C * 9 / 5 + 32
F to C =>
C = (F - 32)* 5 / 9
So the formulae to find the point at which they both meet is: