Re: Decimal exponent (power) in i4gl?
Posted in 1998
Peter Lancashire schrieb:
>
> Manuel A. Daponte Santiago wrote:
> >
> > In i4gl there is the ** operand to raise a number to a power, but it
> > only handles integers (2 ** 2.5 = 4).
> >
> > Does somebody know hot to perform this operation?
> >
> > Thanks in advance
>
> The database engine from version 7.1 can do it (extract from manual):
>
> POW Function
>
> The POW function raises the base to the exponent. This function requires
> two numeric arguments. The return type is FLOAT. The following example
> returns all the information for circles whose areas ( p r 2 ) are less
> than 1,000 square units:
>
> SELECT * FROM circles WHERE (3.1417 * POW(radius,2)) < 1000
^
I would like to buy squares from you. Would you trade your squares
for circles of equal area? ;>
Sorry, couldnt resist
Dirk