MOD

ส่งคืนผลลัพธ์ของโอเปอเรเตอร์โมดูโลและเศษหลังการหาร

ตัวอย่างการใช้งาน

MOD(10,4)

MOD(A2,B2)

รูปแบบคำสั่ง

MOD(dividend, divisor)

  • dividend - จำนวนที่จะถูกหารเพื่อหาเศษ

  • divisor - จำนวนที่จะเป็นตัวหาร

หมายเหตุ

ฟังก์ชัน MOD จะใช้กับตัวเลขที่ไม่ใช่จํานวนเต็มด้วย แต่อาจแสดงผลลัพธ์โดยประมาณเนื่องจากใช้จำนวนจุดลอยตัว โดยคุณสามารถใช้ฟังก์ชัน ROUND เพื่อปัดเศษผลลัพธ์ขึ้นหรือลงเพื่อให้ได้ผลลัพธ์ที่คาดหวังได้

ตัวอย่าง

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

ค้นหา
ล้างการค้นหา
ปิดการค้นหา
เมนูหลัก
10628813425817264085
true
ค้นหาศูนย์ช่วยเหลือ
true
true
true
true
true
35
false
false