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.

Math and Time FunctionsWRITE $ZEXP("")returns 1.WRITE $ZEXP()generates a error.See Also• $ZLN function• $ZLOG function• $ZPI special variable$ZHEXConverts a hexadecimal string to a decimal number and vice versa.$ZHEX(num)$ZH(num)ParametersnumAn expression that evaluates to a numeric value be converted, either a quotedstring or an integer (signed or unsigned).Description$ZHEX converts a hexadecimal string to a decimal integer, or a decimal integer to a hexadecimalstring.If num is a string value, $ZHEX interprets it as the hexadecimal representation of a number,and returns that number in decimal. Be sure to place the string value within quotation marks.If num is a numeric value, $ZHEX converts it to a string representation of the number inhexadecimal format. If either the initial or the final numeric value cannot be represented asan 8-byte signed integer, $ZHEX generates a error.366 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!