Rewrite Integer As Sum
Express integers as a sum of their digits, unit parts, or custom partitions.
Break numbers apart into the sums hiding inside them — digit mode gives you 1+2+3, place value shows 100+20+3, and unit mode stacks ones. And everything runs in your browser. Nothing gets uploaded.
Frequently Asked Questions
What does Digit Sum mode do?
It breaks each integer into its individual digits and expresses it as their sum. For example, 123 becomes 1 + 2 + 3.
What is Place Value mode?
Place Value mode expresses each integer as the sum of each digit multiplied by its place. For example, 123 = 100 + 20 + 3.
What is Unit Sum mode?
Unit Sum writes the number as a sum of ones: 5 = 1 + 1 + 1 + 1 + 1. For large numbers, the output is abbreviated to avoid extremely long results.
Does it handle negative numbers?
Yes. Negative numbers are shown with a leading minus sign and the absolute value is decomposed. For example, -42 becomes -(4 + 2) in digit mode.
Is there a size limit?
Digit and Place Value modes work on arbitrarily large integers. Unit Sum mode is capped at 10,000 to keep the output manageable.