> def charnum(count): > - return int(round(count * width // maxcount)) > + return int(count * width // maxcount) We're doing floating-point division as `maxcount` is float.