InterSystems SQL Reference
POWER
|
|
POWER(numeric-expression,power) {fn POWER(numeric-expression,power)}
The base number. Can be a positive or negative integer or fractional number. | |
The exponent, which is the power to which to raise |
SET a=1 WHILE a<17 { &sql(SELECT {fn POWER(2,:a)} INTO :b) IF SQLCODE'=0 { WRITE !,"Error code ",SQLCODE QUIT } ELSE { WRITE !,"2 to the ",a," = ",b SET a=a+1 } }
Content for this page loaded from RSQL_power.xml on 2018-02-01 14:30:12
|