VBScript CByte Function
Definition and Usage
The CByte function can convert an expression to a byte (Byte) type.
Syntax
CByte(expression)
Parameter | Description |
---|---|
expression | Required. Any valid expression. |
Instance
Example 1
dim a a=134.345 document.write(CByte(a))
Output:
134
Example 2
dim a a=14.345455 document.write(CByte(a))
Output:
14