Rename `float_digits()` -> `dec_digits()`, since decimal.

rekt_pps
Tyler Goodlet 2023-03-21 11:33:16 -04:00
parent 76cd5519b3
commit ea9ea4a6d7
1 changed files with 6 additions and 2 deletions

View File

@ -69,8 +69,9 @@ AssetTypeName: Literal[
# egs. stock, futer, option, bond etc. # egs. stock, futer, option, bond etc.
def float_digits( def dec_digits(
value: float, value: float | str | Decimal,
) -> int: ) -> int:
''' '''
Return the number of precision digits read from a decimal or float Return the number of precision digits read from a decimal or float
@ -85,6 +86,9 @@ def float_digits(
) )
float_digits = dec_digits
def digits_to_dec( def digits_to_dec(
ndigits: int, ndigits: int,
) -> Decimal: ) -> Decimal: