caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* positional specifiers in format strings
@ 2007-05-24 11:36 Hendrik Tews
  0 siblings, 0 replies; only message in thread
From: Hendrik Tews @ 2007-05-24 11:36 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-24 11:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-24 11:36 positional specifiers in format strings Hendrik Tews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).