[fpc-pascal] compiler asks for variants support
    Marc Santhoff 
    M.Santhoff at t-online.de
       
    Sun Feb 17 17:59:12 CET 2008
    
    
  
Am Sonntag, den 17.02.2008, 17:23 +0100 schrieb Jonas Maebe:
> 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.
I see.
Thanks, especially for answering quickly,
Marc
    
    
More information about the fpc-pascal
mailing list