Fixes invalid specification of significantDigits on a String with integer argument. - #4796
Fixes invalid specification of significantDigits on a String with integer argument.#4796modlfo wants to merge 1 commit into
Conversation
|
Note that this restriction was added/clarified in modelica/ModelicaSpecification#3262 (comment) |
|
What do you think about converting the integer into a real (by multiply with 1.0 ) and set significantDigits=3 ? Such, large integers are displayed in scientific notation |
Not sure. I don't know how common such large integers are for these blocks, and what people want to see for such values. However, it also impacts smaller numbers so 1234 will be written as "1.23e+03". That uses more space, and seems less readable if you work with integers than plain "1234", but I don't know how relevant that is either. |
|
Looking closer I realized that the removed setting is |
I found a few cases inside
DynamicSelectwhere theString()is called with an integer argument and thesignificantDigitsare provided. That's invalid according to the specification.