toInt32(a)

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


Syntax

toInt32(a)
a: number or text- value to be converted
return: Int32 -  input value converted to signed 32-bit integer

Usage

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

Location

menu: veeos ==> Data ==> Conversion ==> toInt32

library: dataLib

Example

toInt32("a34a") returns 41802
toInt32("478823") returns 4687907
toInt32(478823) returns 478823

Notes

Input can be a scalar or an array. Also can be text or numerical. This varies from the built-in function asInt32() 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, toInt16


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.