- edited description
Deserialization of numerics should follow general rounding rules
I’ve noticed that “from JSON text” ignores the decimal characters when deserializing to an integer.
Using the “Fract/Exp String to Number” instead of “Scan from String“ would fix the issue. (Use System Decimal Point = False)
Comments (6)
-
reporter -
repo owner That does make sense. Need to check for any performance cost of switching the function.
-
repo owner Complication here is that arrays of integers are converted by the inbuilt JSON primitive (for speed reasons). Need to make sure that arrays and scalar integer conversion are consistent with each other (see also
#93). -
repo owner Performance tests in LV2020 suggest this change is faster; fast enough to solve
#93and displace the problematic use of teh inbuilt JSON primitive for arrays. -
repo owner Inbuilt JSON primitive also converts 0.99 to integer 0, so does need replacing.
-
repo owner - changed status to resolved
Resolved for arrays also
- Log in to comment