I premise that I have already tried to find an answer to my question online, but I find difficult to even formulate the question in a correct way so here I am:
Anyone can explain to me why the following lines of code return two different results?
print(9.5*0.1)
print(0.95*1)
0.9500000000000001
0.95
I immagine there will be some floating point arithmetic reason behind that but I'm really curious since I made pretty much the same operation with (almost) the same numbers, and I was wondering why the two different formats