Why does Python treat 1.0j as 1j as the same?
I’m beginning to learn about Python and am starting to understand the importance between integers and floats and how they are different objects. For example, the integer 1
is not the same as the float 1.0
. I am confused because Python does not do this for complex numbers.
Why does Python treat 1.0j as 1j as the same?
I’m beginning to learn about Python and am starting to understand the importance between integers and floats and how they are different objects. For example, the integer 1
is not the same as the float 1.0
. I am confused because Python does not do this for complex numbers.
Why does Python treat 1.0j as 1j as the same?
I’m beginning to learn about Python and am starting to understand the importance between integers and floats and how they are different objects. For example, the integer 1
is not the same as the float 1.0
. I am confused because Python does not do this for complex numbers.