mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-13 03:07:29 +08:00
billing: float5 hotfix
This commit is contained in:
@@ -607,7 +607,7 @@ class float5:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def to_str(cls, f: float):
|
def to_str(cls, f: float):
|
||||||
return f"%.{4 - int(math.log10(f))+1}f" % f
|
return f"%.{2 - int(math.log10(f))+1}f" % f
|
||||||
|
|
||||||
class BillingInfo:
|
class BillingInfo:
|
||||||
def __init__(self, data: Dict) -> None:
|
def __init__(self, data: Dict) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user