Open PeterVermont opened 5 years ago
I observed that,
Now even temp in Celsius is 100, still its showing not boil
,
its wrong,
its wrong,
its right,
any quick fix in code.
created PR https://github.com/reactjs/reactjs.org/pull/1989 Have a look, Suggest any changes if needed
Because the Boiling verdict uses the temperature in celsius , if the user puts in fahrenheit 211.9999 this will incorrectly report that it will boil. This is because the conversion to celsius is limited to 3 digits and gets rounded up to 100.
A fix for this is to change BoilingVerdict to accept scale and temperature and the code to do a slightly different check for each:
I know that I could do a fork and pull request but this is about as far as my interest in this subject goes so anyone else is free to fix this admittedly tiny issue.