Skip to content

Commit

Permalink
Our 'format' string is inspired by ANSI-C, not fully according to it
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Oct 17, 2022
1 parent 82aec37 commit 8b9376a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/operatorsandexpressions.tex
Expand Up @@ -531,8 +531,8 @@ \subsection{Numeric Functions and Conversion Functions}\label{numeric-functions-
\lstinline!(if leftJustified then "-" else "") + String(minimumLength) + "d"!
\end{itemize}

Form of the \lstinline!format! string:
According to ANSI-C the format string specifies one conversion specifier (excluding the leading \%), shall not contain length modifiers, and shall not use `\lstinline!*!' for width and/or precision.
Form of the ANSI-C style \lstinline!format! string:
The string specifies one conversion specifier (excluding the leading \%), shall not contain length modifiers, and shall not use `\lstinline!*!' for width and/or precision.
For all numeric values the format 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!' format specifiers (for non-integral values a tool may round, truncate or use a different format if the integer conversion characters are used).

Expand Down

0 comments on commit 8b9376a

Please sign in to comment.