Skip to content

Commit

Permalink
Scale and offset in verbose are displayed with 15g
Browse files Browse the repository at this point in the history
  • Loading branch information
VelizarVESSELINOV committed Sep 21, 2023
1 parent 9e2f460 commit 7decc88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def readme():

setup(
name="uom",
version="0.6.2",
version="0.6.3",
description="Unit of Measure conversion tool",
long_description=readme(),
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion uom/uom.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def conversion_factors(source, target, verbose=False):
offset = source_a * target_c / source_c / target_b - target_a / target_b

if verbose:
print(f"Scale: {scale}, offset: {offset}")
print(f"Scale: {scale:.15g}, offset: {offset:.15g}")

return scale, offset

Expand Down

0 comments on commit 7decc88

Please sign in to comment.