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

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-21 11:33:16 -04:00
parent c68f240376
commit 2a5c13bcde
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: