mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-22 14:17:35 +02:00
Merge pull request #291 from goobber-gawber/modernize2
compiler: gdsMill: Modernize codebase.
This commit is contained in:
@@ -90,12 +90,12 @@ class rational:
|
|||||||
if autolong:
|
if autolong:
|
||||||
self.denom *= 10 ** int(expparts[1])
|
self.denom *= 10 ** int(expparts[1])
|
||||||
else:
|
else:
|
||||||
self.denom *= 10L ** int(expparts[1])
|
self.denom *= 10 ** int(expparts[1])
|
||||||
else:
|
else:
|
||||||
if autolong:
|
if autolong:
|
||||||
self.num *= 10 ** int(expparts[1])
|
self.num *= 10 ** int(expparts[1])
|
||||||
else:
|
else:
|
||||||
self.num *= 10L ** int(expparts[1])
|
self.num *= 10 ** int(expparts[1])
|
||||||
|
|
||||||
def initfromfloat(self, x, floatprecision):
|
def initfromfloat(self, x, floatprecision):
|
||||||
"converts a float into a rational with finite resolution"
|
"converts a float into a rational with finite resolution"
|
||||||
|
|||||||
Reference in New Issue
Block a user