Browse thread
[Caml-list] float numbers problem (CVS version of ocamlopt)
-
Sebastien Briais
- Sebastien Briais
- John Max Skaller
- Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | John Max Skaller <skaller@o...> |
| Subject: | Re: [Caml-list] float numbers problem (CVS version of ocamlopt) |
Sebastien Briais wrote: > Hello, > > when doing a little program in ocaml that uses float numbers, > I found something that sounds like a bug in the native compiler. > > I have a PC (Pentium IV) with a RedHat 8.0 and the CVS version of ocaml > : 3.06+34 Objective Caml version 3.06+31 (2003-05-02) Same result in +31. > bash-2.05b$ ocamlc -o toto toto.ml > bash-2.05b$ ./toto > 0.674000000000001487 > 0.454276000000002012 > 0.674000000000001487 > 0.454276000000002012 > > bash-2.05b$ ocamlopt -o toto.opt toto.ml > bash-2.05b$ ./toto.opt > 0.674000000000001487 > nan. > 0.674000000000001487 > nan. -- John Max Skaller, mailto:skaller@ozemail.com.au snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia. voice:61-2-9660-0850 ------------------- 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