English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    
Browse thread
[Caml-list] string_of_float less accurate than sprintf "%f" ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Francois Thomasset <francois.thomasset@i...>
Subject: Re: [Caml-list] string_of_float less accurate than sprintf "%f" ?
> 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