Skip to content

Commit

Permalink
Speak of Real and Integer instead of 'integral' and 'non-integral'
Browse files Browse the repository at this point in the history
The use of 'integral' seems misleading in a context where also Booleans and enumeration values could be considered integral.
  • Loading branch information
henrikt-ma committed Oct 24, 2022
1 parent 64d8b0e commit 2278981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/operatorsandexpressions.tex
Expand Up @@ -534,8 +534,8 @@ \subsection{Numeric Functions and Conversion Functions}\label{numeric-functions-

The ANSI-C style \lstinline!format! string (which cannot be combined with any of the other named arguments) consists of a single conversion specification without the leading \%.
It shall not contain a length modifier, and shall not use `\lstinline!*!' for width and/or precision.
For all numeric values the conversion specifiers `\lstinline!f!', `\lstinline!e!', `\lstinline!E!', `\lstinline!g!', `\lstinline!G!' are allowed.
For integral values it is also allowed to use the `\lstinline!d!', `\lstinline!i!', `\lstinline!o!', `\lstinline!x!', `\lstinline!X!', `\lstinline!u!', and `\lstinline!c!' conversion specifiers (for non-integral values a tool may round, truncate or use a different format if the integer conversion specifiers are used).
For both \lstinline!Real! and \lstinline!Integer! values, the conversion specifiers `\lstinline!f!', `\lstinline!e!', `\lstinline!E!', `\lstinline!g!', `\lstinline!G!' are allowed.
For \lstinline!Integer! values it is also allowed to use the `\lstinline!d!', `\lstinline!i!', `\lstinline!o!', `\lstinline!x!', `\lstinline!X!', `\lstinline!u!', and `\lstinline!c!' conversion specifiers (for \lstinline!Real! values a tool may round, truncate or use a different format if the integer conversion specifiers are used).

The `\lstinline!x!'/`\lstinline!X!' formats (hexa-decimal) and \lstinline!c! (character) for \lstinline!Integer! values give results that do not agree with the Modelica grammar.
\end{semantics}
Expand Down

0 comments on commit 2278981

Please sign in to comment.