Johan Granberg lijat.meREM at
Sun Oct 26 04:53:46 PDT 2008

Saaa wrote:

> ?
> main.d(118): function std.math.pow called with argument types:
>  (double,uint)
> matches both:
>  std.math.pow(real,uint)
> and:
>  std.math.pow(real,real)
> Also, I use pow(x,2U). Is this the correct function to use or is there a
> dedicated x*x function?

you can solve that by casting x into real before the call
but in this case why not just simply write x*x? personally I think thats both clearer and more efficient.

More information about the Digitalmars-d-learn mailing list