diff --git a/src/sakia/core/money/relative.py b/src/sakia/core/money/relative.py index a524e468468f9e61265ea52fd0e1155c57473e30..d015d4d9f5209bb1489b098804486979efc71b9e 100644 --- a/src/sakia/core/money/relative.py +++ b/src/sakia/core/money/relative.py @@ -45,7 +45,7 @@ class Relative: @staticmethod def to_si(value, digits): - prefixes = ['', 'd', 'c', 'm', 'µ', 'n', 'p', 'f', 'a', 'z', 'y'] + prefixes = ['', 'm', 'µ', 'n', 'p', 'f', 'a', 'z', 'y'] if value < 0: value = -value multiplier = -1 @@ -56,10 +56,7 @@ class Relative: prefix = "" while int(scientific_value) == 0 and scientific_value > 0.0: - if prefix_index > 3: - scientific_value *= 1000 - else: - scientific_value *= 10 + scientific_value *= 1000 prefix_index += 1 if prefix_index < len(prefixes):