Changes between Version 133 and Version 134 of WikiStart
- Timestamp:
- 02/26/19 14:25:28 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v133 v134 112 112 113 113 114 ====Value representation in Json ==== 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 not used. 117 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. 119 120 121 122 123 114 124 == Genius2 sources == 115 125