11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$ZPOWERgenerates an error.See Also• $ZEXP function• $ZLN function• $ZPI special variable$ZPOWERReturns the value of a number raised to the selected power.$ZPOWER(num,exponent)ParametersnumexponentThe number to be raised to a power.The exponent.Description$ZPOWER returns the value of the num parameter raised to the nth power. This functionperforms the same operation as the Binary Exponentiation operator (**). (See Operators inUsing <strong>Caché</strong> <strong>ObjectScript</strong>.)ParametersnumThe number to be raised to a power. It can be integer or floating point, negative, positive, orzero. It can be specified as a value, a variable, or an expression. If specified as a quoted string,evaluation terminates at the first non-numeric character. The null string ("") and non-numericstrings evaluate to zero.exponentThe exponent is a number that can be integer or floating point, negative, positive, or zero. Itcan be specified as a numeric or string value, a variable, or an expression. The null string ("")and non-numeric strings evaluate to zero. However, some restrictions apply:• If num is 0, exponent must be a positive, non-zero number.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 371

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!