Skip to main content

numToByte

Type​

function

Summary​

Returns the byte corresponding to a numeric value in the range 0-255.

Syntax​

the numToByte of <numericValue>
numToByte(<numericValue>)

Description​

Use the byteToNum function to translate numbers into their byte equivalents, or to interpret a byte (such as a control character) that can't be displayed.

The numToByte function is the inverse of the byteToNum function.

Parameters​

NameTypeDescription

numericValue

An integer between zero and 255, or an expression that evaluates to such an integer.

Examples​

numToByte(65) -- returns a byte with numeric value 65
numToByte(0) -- returns a byte with numeric value 0

Value​

NameTypeDescription

return

The numToByte function returns a single byte.

function: uniEncode, binaryEncode, byteToNum, charToNum, base64Encode, macToISO, toUpper, ISOToMac, toLower, binaryDecode

property: extendKey, charSet, HTMLText, useUnicode

Compatibility and Support​

Introduced

LiveCode 4.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?