diff --git a/setup.py b/setup.py index 28f8b57..70749f2 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/stempeg/__init__.py b/stempeg/__init__.py index 0322aeb..96d73ac 100644 --- a/stempeg/__init__.py +++ b/stempeg/__init__.py @@ -13,7 +13,7 @@ import pkg_resources import shutil -__version__ = "0.1.7" +__version__ = "0.1.8" def cmd_exist(cmd): diff --git a/stempeg/read.py b/stempeg/read.py index 9aadba1..8bb38a6 100644 --- a/stempeg/read.py +++ b/stempeg/read.py @@ -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 @@ -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')