Skip to main content
DigiCalcs

วิธีการคำนวณ Sum of Digits

learn.whatIsHeading

A digit sum calculator adds together all the individual digits of a number. The sum of digits of 12345 is 1+2+3+4+5 = 15. Digit sums are used in divisibility rules (a number is divisible by 9 if its digit sum is divisible by 9), check digit algorithms, and computing digital roots.

สูตร

sum = d1 + d2 + d3 + ... + dn

คำแนะนำทีละขั้นตอน

  1. 1Separate the number into individual digits
  2. 2Add all digits together
  3. 3The result is the digit sum

ตัวอย่างที่มีคำตอบ

อินพุต
12345
ผลลัพธ์
15
Used in divisibility rules and digital roots

ข้อผิดพลาดที่ควรหลีกเลี่ยง

  • Including the decimal point in multi-digit sums
  • Forgetting negative signs don't affect digit sums

พร้อมที่จะคำนวณแล้วหรือยัง? ลองใช้เครื่องคิดเลข Sum of Digits ฟรี

ลองด้วยตัวคุณเอง→

การตั้งค่า