Change
Lexical representation of decimal values
Issue description
When an occurrence has the lexical value "0.00", the editor in the form displays 0 and produces the lexical value "0". Should this be considered a change? Or is "0" the same as "0.00" and "0.0000".
Developer comments
Generally speaking trailing zeros in the decimal part should be ignored.
Rejection comment
This is already working correctly. This was confirmed by reading through the tests and augmenting them. A lot of thought went into it, because of [12069, this bug].
Short summary:
* Occurrences of datatype decimal can be stored with trailing zeros after the decimal point, because the validtor consider such a value valid. But Topincs never produces such values. Neither in the API nor in the client. If the administrator manages to get them in there otherwise, he is on his own.
* When the API reads a value with trailing zeros after the decimal point, the converter ignores them, e.g. a persisted value of "3.14000" will be treated as 3.14, or "0.0000" will be be 0.
|
Work sessions
Start |
2024-01-17T08:51:06
|
End |
2024-01-17T09:25:06
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.