toInt16(a)

Interprets input as hex value and outputs it as a 16-bit signed  integer


Syntax

o_toInt16(a)
a: number or text- value to be converted
return: Int16 -  input value converted to signed 16-bit integer

Usage

Convert strings or numbers to signed 16-bit integers. Text inputs assumed to be in hex.

Location

menu: veeos ==> Data ==> Conversion ==> toInt16

library: dataLib

Example

o_toInt16("a34") returns 2612
o_toInt16("4708") returns 18184
o_toInt16(4708) returns 4708

Notes

Input can be a scalar or an array. Also can be text or numerical. This varies from the built-in function asInt16() in that it assumes that text inputs are hex.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

toBinStr8, toBinStr16, toBinStr32, toBinStr64, toBinStrN, hexToInt, toUInt8, toInt32


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 04 November 2015 11:48. © 2015.