Changes between Version 135 and Version 136 of WikiStart
- Timestamp:
- 02/26/19 14:26:14 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v135 v136 114 114 === Value representation in Json 115 115 116 Internally 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 notused.116 Internally 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 can not be used. 117 117 118 118 Since 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.