caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* precision not working properly for strings in Printf?
@ 2007-06-27  3:18 Quôc Peyrot
  2007-06-27  3:38 ` [Caml-list] " Jonathan Bryant
  0 siblings, 1 reply; 9+ messages in thread
From: Quôc Peyrot @ 2007-06-27  3:18 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-07-03  1:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-27  3:18 precision not working properly for strings in Printf? Quôc Peyrot
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

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).