Re: X^Y in Forms 4.5
Date: 1995/07/25
Message-ID: <DCA73L.6Ir_at_eunet.ch>#1/1
Hi paulo
Here is a simple example in PL/SQL :
SQL> run
1 declare
2 a number; 3 b number; 4 c number;
5 begin
6 a := 4; 7 b := 3; 8 c := power(a,b);
9 dbms_output.put_line('resultat = '||to_char(c)); 10* end;
resultat = 64
Procédure PL/SQL terminée avec succès.
pjn_at_novabase.pt (Paulo Jorge Cardiga Nunes) wrote:
>Hi!
>I'm trying to built a simple(?) routine to calculate a number powered to
>other. (X^Y)
>Well, it looks simple, but... Y is not an integer. I's a real!! So as
>X, but the problem is not in X, but in Y!!!
>I want to do it in PL/SQL and... i'm stucked!!!
>Some help would be apreciated.
>Thanks!
> \=/, _-===-_-=======-_-===-_-=============-_-====-_
> | _at____oo ( Paulo Nunes pjn_at_novabase.pt )_
> /\ /\ / (___,,,}_--= )
> ) /^\) ^\/ _) =__ NOVABASE, Sistemas de Informacao )
> ) /^\/ _) (_ e Bases de Dados, SA )
> ) _ / / _) ( )
> /\ )/\/ || | )_) (_ "I try to study...but once I pick up )
>< > |(,,) )__) ( a book, my desire to study vanishes )
> || / \)___)\ (_ in a puff of smoke." __)
> | \____( )___) )___ -====-_____-========-_____-======-___==
> \______(_______;;; __;;;
Yves Raisin tel : +41 21 341 81 11 Ofisa Informatique fax : +41 21 341 84 57 Chemin des Charmettes 7 e-mail: ra_at_ofisa.chCH 1003 Lausanne - Switzerland Received on Tue Jul 25 1995 - 00:00:00 CEST