VBScript Oct 函数
定义和用法
Oct 函数可返回表示指定数字八进制值的字符串。
注释:ຖ້າ number 参数不是整数,则在进行运算前将其四舍五入为最接近的整数。
ຄຳນົດ
Oct(number)
ກົດລະບຽບ | ການອະທິບາຍ |
---|---|
number |
ຈຳເປັນ. ສະແສງທີ່ມີຈຳເປັນ. ຖ້າ number ແມ່ນ:
|
ຄວາມປະກອບຈຸດທີ່ຫຍັງ
document.write(Oct(3)) document.write(Oct(5)) document.write(Oct(9)) document.write(Oct(10)) document.write(Oct(11)) document.write(Oct(12)) document.write(Oct(400)) document.write(Oct(459)) document.write(Oct(460))
ການອອກອອກ:
3 5 11 12 13 14 620 713 714