Skip to content

Commit

Permalink
Update stockstats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GleammerRay authored Jan 5, 2024
1 parent d48c564 commit 4ef0909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stockstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1750,8 +1750,8 @@ def _get_num(self, meta):
decimal_places = 0.0
if (len(split) > 1):
decimal_places_str = split[1]
decimal_places = int(decimal_places_str) *
pow(0.1, len(decimal_places_str))
power = pow(0.1, len(decimal_places_str))
decimal_places = float(decimal_places_str) * power
self[meta.name] = meta.int0 + decimal_places

def to_series(self, arr: list):
Expand Down

0 comments on commit 4ef0909

Please sign in to comment.