See the CInt Example section for an example. 1 Starting with Visual Basic 15.8, Visual Basic optimizes the performance of floating-point to 16-bit integer conversion with the CShort function see the Remarks section for more information. Int16.MinValue (-32,768) through Int16.MaxValue (32,767) fractional parts are rounded. 1 Starting with Visual Basic 15.8, Visual Basic optimizes the performance of floating-point to signed byte conversion with the CSByte function see the Remarks section for more information. SByte.MinValue (-128) through SByte.MaxValue (127) fractional parts are rounded. 1 Starting with Visual Basic 15.8, Visual Basic optimizes the performance of floating-point to 64-bit integer conversion with the CLng function see the Remarks section for more information. 1 Starting with Visual Basic 15.8, Visual Basic optimizes the performance of floating-point to integer conversion with the CInt function see the Remarks section for more information. See the CInt Example section for an example.Īny valid Char or String expression only first character of a String is converted value can be 0 through 65535 (unsigned).Īny valid representation of a date and time. 1 Starting with Visual Basic 15.8, Visual Basic optimizes the performance of floating-point to byte conversion with the CByte function see the Remarks section for more information. Function nameĪny valid Char or String or numeric expression.īyte.MinValue (0) through Byte.MaxValue (255) (unsigned) fractional parts are rounded. The function name determines the data type of the value it returns, as shown in the following table. Each function coerces an expression to a specific data type. Sometimes there is no call to a procedure to accomplish the conversion, which improves performance. These functions are compiled inline, meaning the conversion code is part of the code that evaluates the expression.
0 Comments
Leave a Reply. |