summaryrefslogtreecommitdiff
path: root/src/classlibnative/bcltype/number.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/classlibnative/bcltype/number.h')
-rw-r--r--src/classlibnative/bcltype/number.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/classlibnative/bcltype/number.h b/src/classlibnative/bcltype/number.h
index db66435117..7b5efc4485 100644
--- a/src/classlibnative/bcltype/number.h
+++ b/src/classlibnative/bcltype/number.h
@@ -14,6 +14,11 @@
#define NUMBER_MAXDIGITS 50
+static const double LOG10V2 = 0.30102999566398119521373889472449;
+
+// DRIFT_FACTOR = 1 - LOG10V2 - epsilon (a small number account for drift of floating point multiplication)
+static const double DRIFT_FACTOR = 0.69;
+
struct NUMBER {
int precision;
int scale;