Thank you for the comment.
I agree on the print thing, while why tensor internally stores the value differently as it should be still confuses me. As you mentioned in your code, when print the tensor a, it shows tensor([1.100000023841858]) instead of tensor([1.1]).
Also I’m curious why 1.1 gets stored as exactly 1.100000023841858 as it happens in your environment as well.