Browse thread
positional specifiers in format strings
- Hendrik Tews
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Hendrik Tews <H.Tews@c...> |
| Subject: | positional specifiers in format strings |
Hi,
the positional specifiers in format strings don't work as
described. Both "%5$f" and "%.*3$f" are valid format strings
according to the docs, however:
Objective Caml version 3.10.0
# Printf.printf "%5$f";;
Bad conversion %$, at char number 0 in format string ``%5$f''
# Printf.printf "%.*3$f";;
Bad conversion %3, at char number 0 in format string ``%.*3$f''
[BTW, the manual says "For instance, %.*3$f prints a float with ..."
-- I don't see any float in the output produced
;-)]
Could somebody explain how to use the positional specifiers?
Bye,
Hendrik