It's a neural network. It gives approximate results. Here's a newbie question that asks basically the same question, with some interesting answers.
> codesternews: Any deeplearning expert here. Why Neural network can't compute a linear function Celsius to Fahrenheit 100% accurately. Is it data or is it something can be optimised.
print(model.predict([100.0]))
// it results 211.874 which is not 100% accurate (100×1.8+32=212)
> codesternews: Any deeplearning expert here. Why Neural network can't compute a linear function Celsius to Fahrenheit 100% accurately. Is it data or is it something can be optimised.
https://news.ycombinator.com/item?id=19708787