[fpc-pascal] compiler asks for variants support
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Feb 17 17:23:24 CET 2008
On 17 Feb 2008, at 17:19, Marc Santhoff wrote:
> why does this program:
>
>
> program novariant;
> uses
> sysutils;
> var
> a, b: double;
> begin
> b := 0.4237;
> a := b**5;
> writeln(floattostr(a));
> end.
>
>
> when running give that error message:
The ** operator for doubles is declared in the math unit. Without
including the math unit, the only found ** operator is for variants.
Jonas
More information about the fpc-pascal
mailing list