Report --numbers gfixed in describe_options

This commit is contained in:
RunasSudo 2021-01-15 15:23:37 +11:00
parent f534c983cd
commit 1bc0aaf03c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -554,6 +554,10 @@ class BaseSTVCounter:
result.append('--numbers rational') result.append('--numbers rational')
elif pyRCV2.numbers._numclass is pyRCV2.numbers.Native: elif pyRCV2.numbers._numclass is pyRCV2.numbers.Native:
result.append('--numbers native') result.append('--numbers native')
elif pyRCV2.numbers._numclass is pyRCV2.numbers.FixedGuarded:
result.append('--numbers gfixed')
if pyRCV2.numbers.get_dps() != 5:
result.append('--decimals ' + str(pyRCV2.numbers.get_dps()))
else: else:
# Fixed # Fixed
if pyRCV2.numbers.get_dps() != 5: if pyRCV2.numbers.get_dps() != 5: