Version française
Home     About     Download     Resources     Contact us    
Browse thread
[ANN] OCaml-Java project : beta version
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: forum@x9c.fr <forum@x...>
Subject: Re: [Caml-list] [ANN] OCaml-Java project : beta version

Le 22 mars 08 à 19:38, Adrien a écrit :
> Hi,
>
> I wanted to report a small (display) bug.
> I'm using ocamljava often for different purposes and among them,
> calculator. I had just calculated something and wanted to check my
> results I launched ocamljava's toplevel.
> I had some rather weird results. For instance:
> # 1000.**10.;;
> - : float = 1.00000000000000000e+3
>
> ...
>
>
> I think this is just a matter of display. Take a look at the  
> following example :
> # 8.**35.;;
> - : float = 4.05648192073033400e+31
> # 8.**34.;;
> - : float = 5.07060240091291760e+3
> # 8.**33.;;
> - : float = 6.33825300114114700e+29
>
> It seems the last '0' is not displayed.

This is indeed a very embarassing bug in the float to string conversion.
It is now fixed in the darcs repository (of the Cadmium subproject).
The upcoming binary revision will of course also feature this fix.
Thanks for reporting this bug.


Xavier Clerc

PS: bugs can also be reported at http://bugs.x9c.fr/