श्रेणी: कैलकुलेटर
Modulo Calculator
Remainder of a division, floored and truncated
Enter a dividend and a divisor to find the remainder of the division, shown as both the floored modulo and the truncated remainder.
फ्लोर्ड और ट्रंकेटेड परिणाम केवल तभी अलग होते हैं जब भाज्य और भाजक के चिह्न विपरीत हों; अधिकांश प्रोग्रामिंग भाषाएँ ट्रंकेटेड शेषफल लौटाती हैं।
इस पेज पर सब कुछ आपके ब्राउज़र में संसाधित होता है। कुछ भी अपलोड नहीं होता।
यह टूल क्या करता है
Modulo finds the remainder left over after dividing one whole number by another. This calculator shows two conventions because they disagree whenever the dividend and divisor have opposite signs: the floored modulo always takes the sign of the divisor, the mathematical convention, while the truncated remainder takes the sign of the dividend, which is how the % operator behaves in most programming languages.
इस्तेमाल कैसे करें
- Enter the dividend, the number being divided.
- Enter the divisor, which cannot be zero.
- Read the floored modulo, the truncated remainder and the quotient.
निजता
यह टूल पूरी तरह आपके ब्राउज़र में चलता है। आपका डेटा कभी अपलोड, सेव या साझा नहीं होता — टैब बंद करते ही वह हट जाता है।
अक्सर पूछे जाने वाले सवाल
- Why are there two different remainders?
- The floored modulo and the truncated remainder are only different when the dividend and divisor have opposite signs. For example, -7 mod 3 is 2 with the floored convention but -1 with truncation.
- Which one does my programming language use?
- Most C-family languages, including JavaScript, Java and C, use truncated division for %. Python's % operator uses the floored convention instead, matching its mathematical definition.
- What is the quotient shown here?
- It is the floor of the dividend divided by the divisor, the whole number of times the divisor fits into the dividend when rounding toward negative infinity.