bitmap icon indicating copy to clipboard operation
bitmap copied to clipboard

fromhexstring() needs integer division.

Open Tom-E-Mason opened this issue 5 years ago • 0 comments

Calling str(len(hexstring) / 4) in the second argument of format() causes an error as "Precision not allowed in integer format specifier" (VS error message). Float division returns a float value which format() can't use.

Possible fixes:

  • str(len(hexstring) // 4)
  • str(int(len(hexstring)) / 4)

Tom-E-Mason avatar Jan 29 '21 15:01 Tom-E-Mason