Board index » delphi » Help Power(x,y) Doesn't Work!

Help Power(x,y) Doesn't Work!

Help!
For some reason the Power function doesn't work. I tried to put "Math"
in the "uses" statement and my unit won't compile because Delphi can't
find Math.dcu. I've checked and there is no file answering to math.*
in my Delphi directories. What am I missing? Thanks for any help.

Chuck Burkins
    cburk...@pobox.com This is my email, don't bother with reply to,
which has been changed to protect the innocent (me!)

 

Re:Help Power(x,y) Doesn't Work!


Burk <cburk...@link.net> wrote in article
<5oarmr$...@dfw-ixnews10.ix.netcom.com>...

Quote
> Help!
> For some reason the Power function doesn't work. I tried to put "Math"
> in the "uses" statement and my unit won't compile because Delphi can't
> find Math.dcu. I've checked and there is no file answering to math.*
> in my Delphi directories. What am I missing? Thanks for any help.

> Chuck Burkins
>     cburk...@pobox.com This is my email, don't bother with reply to,
> which has been changed to protect the innocent (me!)

Do you have the Client/Server version of Delphi?  
Unfortunately, math.dcu only comes with that version.

_________________________________________________

Earl F. Glynn          EarlGl...@WorldNet.att.net
EFG Software              913/859-9557  Voice/Fax
   Scientific/Engineering/Medical Applications
             Overland Park, KS  USA

Re:Help Power(x,y) Doesn't Work!


In article <5oarmr$...@dfw-ixnews10.ix.netcom.com>,
   cburk...@link.net (Burk) wrote:
]-Help!
]-For some reason the Power function doesn't work. I tried to put "Math"
]-in the "uses" statement and my unit won't compile because Delphi can't
]-find Math.dcu. I've checked and there is no file answering to math.*
]-in my Delphi directories. What am I missing? Thanks for any help.

you don't say what version of Delphi you're using...the Math unit
doesn't come with Delphi 2.0 Desktop...gotta get either the Developer
or Client/Server version...no Math unit in D1 either...not sure about
D3

anyway, you can get a Power() function (and lots of other good stuff)
at the Delphi Developers FAQ...
      http://www.gnomehome.demon.nl/uddf/index.htm     (frames)
      http://www.gnomehome.demon.nl/uddf/indexnf.htm   (no frames)

Mark Vaughan

]-
]-Chuck Burkins
]-    cburk...@pobox.com This is my email, don't bother with reply to,
]-which has been changed to protect the innocent (me!)
]-

Other Threads