# toUInt8(a)

Interprets input as hex value and outputs it as an 8-bit unsigned integer

### Syntax

o_toUInt8(a)
  a: number or text- value to be converted
  return: UInt8 - input value converted to unsigned 8-bit integer

### Usage

Convert strings or numbers to unsigned 8-bit integers. Text inputs assumed to be in hex.

### Location

menu: veeos ==> Data ==> Conversion ==> toUInt8

library: dataLib

### Example

o_toUInt8("a") returns 10
o_toUInt8("47") returns 71
o_toUInt8(47) returns 47

### Notes

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

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:29.