Changes between Version 133 and Version 134 of WikiStart


Ignore:
Timestamp:
02/26/19 14:25:28 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v133 v134  
    112112
    113113
     114====Value representation in Json ====
     115
     116Internally BigDecimal is used for computing and storing issue values, utilities etc. Doubles always give rounding problems and can not be assumed to sum properly to 1 and therefore are not used.
     117
     118Since JSON parses normal number directly into doubles, it is necessary to place numbers also inside string objects ("..."). That in turn forces us to put some hard marker in the string to see if "1" would be a discrete value or number value. To do this, any Value contained in a string that is of the form "=X.Y" where X is a positive or negative integer and Y a positive integer is a NumberValue. Anything else is interpreted as a DiscreteValue.
     119
     120
     121
     122
     123
    114124== Genius2 sources ==
    115125