Latest web development tutorials

VBScript Cos ฟังก์ชั่น

VBScript อ้างอิง อ้างอิง VBScript สมบูรณ์

Cos ฟังก์ชันส่งกลับจำนวนที่ระบุ (มุม) ของโคไซน์

ไวยากรณ์

Cos(number)

参数 描述
number 必需。将某个角表示为弧度的数值表达式。

ตัวอย่าง

ตัวอย่าง

<script type="text/vbscript">

document.write(Cos(50.0) & "<br />")
document.write(Cos(-50.0))

</script>

ตัวอย่างของการส่งออกดังกล่าวข้างต้น:

0.964966028492113
0.964966028492113

ลอง»

VBScript อ้างอิง อ้างอิง VBScript สมบูรณ์