[fpc-pascal] DateToStr in arm does not work!
Henry Vermaak
henry.vermaak at gmail.com
Tue Jul 3 21:44:43 CEST 2007
On 03/07/07, Luca Olivetti <luca at ventoso.org> wrote:
>
> If this program compiles and works fine:
> program floattest;
>
> uses sysutils;
> var a,b:double;
>
> begin
> a:=0.5;
> b:=0.3;
> writeln(format('%5.3f',[a*b]));
>
> end.
>
>
>
> can I assume that either my compiler has been built with the right
> options or I have a working fpu?
yes.
> I'm asking because jose original test program fails here, while the
> above program correctly prints out 0.150
does the above work if you set a or be to a negative number? my
softfloat crashes with writeln(negative number).
maybe you should try fpc 2.3.1, since that's the one i'm using and my
datetostr is working...
>
> Bye
> --
> Luca
cheers
henry
More information about the fpc-pascal
mailing list