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
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ class BaseSTVCounter:
result.append('--numbers rational')
elif pyRCV2.numbers._numclass is pyRCV2.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:
# Fixed
if pyRCV2.numbers.get_dps() != 5: