Jul-19-2023, 09:16 PM
So I read that Python no longer uses long conversions and all are longs with an "int" format
I found an odd problem reading these forums, it's as goes:
find if A is == to e**0.2:
a = 27
b = 84
c = 110
d = 133
e = (int(a**5 + b**5 + c**5 + d**5))
Z = (int(e**0.2))
#####print(e, a ,b)##### avoid due to it incrementing stacks
if Z == a**5:
print("yes")
print(a**5) #for checking the value anyway
if Z != a**5:
print("no")
print(a**5)
print(Z)
print(e)
This will print NO because the SUMMATION of e in Z becomes rounded to 144 SHORT. But we can still see that by printing A**5 it converts it into a long.
I think this is because when the values of e are exchanged to Z it forces it into a short.
I would convert to a long but those are not available. I tried Int Z, tried adding 000000000000000000 to first of e(dumb probably).
Just tried: if e**0.2 == a**5: and it is still no. This telling me it comes from the problem e**0.2 converting it into short most likely.
plz fix
I found an odd problem reading these forums, it's as goes:
find if A is == to e**0.2:
a = 27
b = 84
c = 110
d = 133
e = (int(a**5 + b**5 + c**5 + d**5))
Z = (int(e**0.2))
#####print(e, a ,b)##### avoid due to it incrementing stacks
if Z == a**5:
print("yes")
print(a**5) #for checking the value anyway
if Z != a**5:
print("no")
print(a**5)
print(Z)
print(e)
This will print NO because the SUMMATION of e in Z becomes rounded to 144 SHORT. But we can still see that by printing A**5 it converts it into a long.
I think this is because when the values of e are exchanged to Z it forces it into a short.
I would convert to a long but those are not available. I tried Int Z, tried adding 000000000000000000 to first of e(dumb probably).
Just tried: if e**0.2 == a**5: and it is still no. This telling me it comes from the problem e**0.2 converting it into short most likely.
plz fix