ToByte

Summary

The ToByte function converts the input parameter to the byte data type.

Syntax

ToByte(<numeric or numeric string>)

Return Type

Byte

Details

The minimum byte value is -128 and the maximum byte value is 127.  Input parameters must fall with this range.

Examples

select ToByte('127'),
TypeNameOf(ToByte('127'))
from Empty();

typebyte_01

Related Functions

ToInteger

ToLong

ToShort