numToByte

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the numToByte of <numericValue>
numToByte(<numericValue>)
Summary

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

Introduced4.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
numericValue

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

Example
numToByte(65) -- returns a byte with numeric value 65
numToByte(0) -- returns a byte with numeric value 0
Values
NameTypeDescription
return

The numToByte function returns a single byte.

RelatedProperty: extendKey, charSet, HTMLText, useUnicode
Function: uniEncode, binaryEncode, byteToNum, charToNum, base64Encode, macToISO, toUpper, ISOToMac, toLower, binaryDecode
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.

Tagstext processing