0

I'm trying to convert a small file from Python2 to Python3. This hex variable assignment is blocking me.

a = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2FL

The error I'm receiving is:

a = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2FL
                                                                      ^
SyntaxError: invalid syntax

Any suggestions?

Proximo
  • 6,235
  • 11
  • 49
  • 67

1 Answers1

1

Is there a problem if you remove the L? Is that not the value you expect?

>>> 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
115792089237316195423570985008687907853269984665640564039457584007908834671663

Wolfram alpha thinks that's the correct value!

Bruno CL
  • 149
  • 9