diff --git a/setup.py b/setup.py index 25d5f28..5e58812 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/uom/uom.py b/uom/uom.py index 36a94ab..d503fc3 100644 --- a/uom/uom.py +++ b/uom/uom.py @@ -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