From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA06502; Thu, 2 May 2002 14:54:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA06468 for ; Thu, 2 May 2002 14:54:54 +0200 (MET DST) Received: from ionie.inria.fr (ionie.inria.fr [128.93.39.12]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g42CsaD23632; Thu, 2 May 2002 14:54:36 +0200 (MET DST) Received: from ionie.inria.fr (localhost [127.0.0.1]) by ionie.inria.fr (8.11.1/8.11.1) with ESMTP id g42CsZv21816; Thu, 2 May 2002 14:54:35 +0200 (MET DST) Message-Id: <200205021254.g42CsZv21816@ionie.inria.fr> X-Mailer: exmh version 2.1.1 10/15/1999 To: John Max Skaller cc: "Beck01, Wolfgang" , caml-list@inria.fr Subject: Re: [Caml-list] string_of_float less accurate than sprintf "%f" ? In-Reply-To: Message from John Max Skaller of "Thu, 02 May 2002 22:44:32 +1000." <3CD134B0.8050100@ozemail.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 02 May 2002 14:54:35 +0200 From: Francois Thomasset Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Beck01, Wolfgang wrote: > > There's another problem too: > > # string_of_float 42.0;; > - : string = "42" > > The result isn't an ocaml float literal. > Is it not? # float_of_string (string_of_float 42.0);; - : float = 42 So if you know that there is a float in the string, it is a float isn't it? -- François Thomasset. INRIA (A3) Francois.Thomasset@inria.fr Tél.: +33 (1) 39-63-54-75 Fax: +33 (1) 39-63-59-95 INRIA, Rocquencourt, BP 105, 78153 Le Chesnay Cedex, France ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners