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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to