小白教程
所有教程
关于
Search
172.70.100.205
172.70.100.205
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func cint”的源代码
本页内容
上一节:
Func_chr
下一节:
Func_clng
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:CInt}}[[Category:vbscript ref functions|40]] = VBScript CInt 函数 = [[vbscript ref functions|完整的 VBScript 参考手册]] CInt 函数把表达式转换为整数(Integer)类型。 '''注意:'''值必须是介于 -32768 与 32767 之间的数字。 === 语法 === <pre> CInt(expression) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | expression | 必需。任何有效的表达式。 |} <sample title="" desc="" lang="vb" hererun="1"> <script type="text/vbscript"> document.write(CInt("300") & "<br />") document.write(CInt(36.75) & "<br />") document.write(CInt(-67) & "<br />") </script> </sample> 以上实例输出结果: <sample title="" desc="" lang="vb" hererun="1"> 300 37 -67 </sample> [[vbscript ref functions|完整的 VBScript 参考手册]]
返回至“
Func cint
”。
上一节:
Func_chr
下一节:
Func_clng