From 7b52f8f06dae683462021dfecf11356096213333 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sun, 3 Jan 2021 00:28:35 +1100 Subject: [PATCH] Remove native integers mode in preparation for more advanced rounding options --- docs/options.md | 5 +-- html/index.html | 3 +- html/worker.js | 3 -- pyRCV2/cli/stv.py | 6 +-- pyRCV2/numbers/__init__.py | 2 - pyRCV2/numbers/int_js.py | 58 ---------------------------- pyRCV2/numbers/int_py.py | 78 -------------------------------------- 7 files changed, 5 insertions(+), 150 deletions(-) delete mode 100644 pyRCV2/numbers/int_js.py delete mode 100644 pyRCV2/numbers/int_py.py diff --git a/docs/options.md b/docs/options.md index c3eaadc..4fa6947 100644 --- a/docs/options.md +++ b/docs/options.md @@ -47,10 +47,7 @@ This dropdown allows you to select how numbers (vote totals, etc.) are represent * Fixed: Numbers are represented as fixed-precision decimals, up to a certain number of decimal places (default: 5). * Rational: Numbers are represented exactly as fractions, resulting in the elimination of rounding error, but increasing computational complexity when the number of surplus transfers is very large. -* Native float: Numbers are represented as floating-point numbers. This is fast, but not recommended as unexpectedly large rounding errors may be introduced in some circumstances. -* Native int: Numbers are represented as integers. Fractions are discarded. - -Note that, during some calculations, in order to reduce rounding errors, ballot weights and intermediate may be represented internally as fractions irrespective of this option. +* Native: Numbers are represented as native integers or floating-point numbers. This is fast, but not recommended as unexpectedly large rounding errors may be introduced in some circumstances. ## Surplus order (-s/--surplus-order) diff --git a/html/index.html b/html/index.html index 0df41dc..42a7cc0 100644 --- a/html/index.html +++ b/html/index.html @@ -82,8 +82,7 @@