YouTip LogoYouTip

Func Cbyte

# VBScript CByte Function * * Complete VBScript Reference Manual](#) * * * The CByte function converts an expression to the Byte data type. The expression must be a number between 0 and 255. ### Syntax CByte(expression) | Parameter | Description | | :--- | :--- | | expression | Required. Any valid expression. | ## Examples ## Examples document.write(CByte(0) & "
") document.write(CByte(56.8) & "
") document.write(CByte(123.2) & "
") document.write(CByte(255) & "
") The output of the above example is: 0 57 123 255 [Try it Yourself Β»](#) * * Complete VBScript Reference Manual](#)
← Func CcurFunc Cbool β†’