caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Behavior of %F
@ 2009-06-08 11:19 Alain Frisch
  2009-06-08 16:25 ` Godi & tcl/tk Eliot Handelman
  0 siblings, 1 reply; 2+ messages in thread
From: Alain Frisch @ 2009-06-08 11:19 UTC (permalink / raw)
  To: caml-list

Hello,

The behavior of Printf w.r.t. %F changed recently.

Before (OCaml 3.10.0, and presumably 3.11.0):

# Printf.sprintf "%F" 1.;;
- : string = "1."


Now (OCaml 3.11.1+rc1):

# Printf.sprintf "%F" 1.;;
- : string = "1.000000"


This change comes from:

http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/stdlib/printf.ml.diff?r1=1.58.2.1;r2=1.58.2.2;f=h


Is the new behavior intentional? The manual says:

========
F: convert a floating-point argument to Caml syntax (dddd.  or dddd.ddd 
or d.ddd e+-dd).
========

but it seems the new implementation never produces the form dddd.


-- Alain


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

* Godi & tcl/tk
  2009-06-08 11:19 Behavior of %F Alain Frisch
@ 2009-06-08 16:25 ` Eliot Handelman
  0 siblings, 0 replies; 2+ messages in thread
From: Eliot Handelman @ 2009-06-08 16:25 UTC (permalink / raw)
  Cc: caml-list

Hi,

would anyone happen to know how to configure godi to find tcl/tk? This
comes up every time I have to configure a new
system & each time I cannot remember how I did it the previous time.

thanks,

-- eliot


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

end of thread, other threads:[~2009-06-08 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 11:19 Behavior of %F Alain Frisch
2009-06-08 16:25 ` Godi & tcl/tk Eliot Handelman

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