ui: Fix describebid for reverse PART_ANON swaps.
This commit is contained in:
9 files changed
+57
-31
No files matched your search
@@ -106,7 +106,7 @@ def float_to_str(f: float) -> str:
|
||||
return format(d1, 'f')
|
||||
|
||||
|
||||
def make_int(v, scale=8, r=0) -> int: # r = 0, no rounding, fail, r > 0 round up, r < 0 floor
|
||||
def make_int(v, scale: int = 8, r: int = 0) -> int: # r = 0, no rounding, fail, r > 0 round up, r < 0 floor
|
||||
if type(v) == float:
|
||||
v = float_to_str(v)
|
||||
elif type(v) == int:
|
||||
|
||||
Reference in new issue
Block a user