Merge pull request #291 from goobber-gawber/modernize2

compiler: gdsMill: Modernize codebase.
This commit is contained in:
Matt Guthaus 2026-04-17 07:25:26 -07:00 committed by GitHub
commit f2db9fe2de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -90,12 +90,12 @@ class rational:
if autolong:
self.denom *= 10 ** int(expparts[1])
else:
self.denom *= 10L ** int(expparts[1])
self.denom *= 10 ** int(expparts[1])
else:
if autolong:
self.num *= 10 ** int(expparts[1])
else:
self.num *= 10L ** int(expparts[1])
self.num *= 10 ** int(expparts[1])
def initfromfloat(self, x, floatprecision):
"converts a float into a rational with finite resolution"