-
CInt
Result = CInt ( Expression AS Variant ) AS Integer Result = CInteger ( Expression AS Variant ) AS Integer |
式を整数( Integer)に変換します。
Errors
Message |
Description |
---|---|
Type mismatch (6) | Expression cannot be converted. |
Examples
' Examples of conversion done using Cint function
Print CInt("17")
Print CInt(True)
Print CInt(Now)
17
-1
2484515
' Example illustrate the use of Cint function to truncate to whole number.
' See also Int function ( for similar example).
Print CInt(3.2)
Print CInt(3.9)
Print CInt(6)
Print CInt(-7.2)
Print CInt(-7.9)
3
3
6
-7
-7
See also
コメント
最新を表示する
NG表示方式
NGID一覧