I have to compare two numbers. One of them comes from regulat python code and comes other from numpy. Debugger shows they have same value '29.0', but type of first is float
and type of second is float64
, so a == b
and a - b == 0
is False
. How can I deal with it? Is there any way to
force a regular python variable to be float64
or numpy use float
by default?
Update: In the end of all these values comes from the same file where 29.0
is written, so I don't think there are differences in numeric values.