Skip to content

Commit

Permalink
use additional rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Jul 9, 2019
1 parent b9ee4f1 commit 256f460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='stempeg',
version='0.1.7',
version='0.1.8',
description='Read and write stem multistream audio files',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion stempeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import pkg_resources
import shutil

__version__ = "0.1.7"
__version__ = "0.1.8"


def cmd_exist(cmd):
Expand Down
4 changes: 2 additions & 2 deletions stempeg/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@



def float_to_str(f, precision=8):
def float_to_str(f, precision=5):
"""
Convert the given float to a string,
without resorting to scientific notation
Expand All @@ -23,7 +23,7 @@ def float_to_str(f, precision=8):
# 192khz in float
ctx.prec = precision

d1 = ctx.create_decimal(repr(f))
d1 = ctx.create_decimal(repr(round(f, 5)))
return format(d1, 'f')


Expand Down

0 comments on commit 256f460

Please sign in to comment.