From: "Quôc Peyrot" <chojin@lrde.epita.fr>
To: caml-list@inria.fr
Subject: precision not working properly for strings in Printf?
Date: Wed, 27 Jun 2007 05:18:45 +0200 [thread overview]
Message-ID: <0AC5F6BF-D076-4561-B015-70E41954D248@lrde.epita.fr> (raw)
It seems that the precision field doesn't work properly with the "s"
type in Printf.printf:
# Printf.printf "%.2s" "qwerty";;
qwerty- : unit = ()
This should print "qw"
--
Best Regards,
Quôc
next reply other threads:[~2007-06-27 3:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 3:18 Quôc Peyrot [this message]
2007-06-27 3:38 ` [Caml-list] " Jonathan Bryant
2007-06-27 3:48 ` Quôc Peyrot
2007-06-27 4:11 ` Jonathan Bryant
2007-06-27 8:34 ` Vincent Hanquez
2007-06-27 9:53 ` Jonathan Bryant
2007-06-27 11:08 ` Quôc Peyrot
2007-07-03 1:14 ` David Thomas
2007-06-27 10:46 ` Quôc Peyrot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0AC5F6BF-D076-4561-B015-70E41954D248@lrde.epita.fr \
--to=chojin@lrde.epita.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox