Wiris

Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • Nubric

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • MathPlayer
                      • MathML 3 elementary math examples

                      Long division

                      Reading time: 1min

                      There are many different styles of long division used around the world. MathML has ten named styles, but the list is open-ended. All styles share how the intermediate steps are displayed, but differ in the placement of the divisor, result, and where lines are drawn. The default style is the style used in the U.S., Great Britain, and elsewhere.

                      Below are two examples that differ only in the style and what character is used for the decimal separator. Because the separator is typically set on the math element, it is included in these examples.

                      longdiv.png <math xmlns="http://www.w3.org/1998/Math/MathML"> <mlongdiv> <mn> 12 </mn> <mn> 16.5 </mn> <mn> 198 </mn> <msgroup position='1' shift='-1'> <msgroup> <mn> 12 </mn> <msline length='2'/> </msgroup> <msgroup> <mn> 78 </mn> <mn> 72 </mn> <msline length='2'/> <mn> 6.0 </mn> <mn> 6.0 </mn> </msgroup> <msgroup position='-1'> <!-- extra shift to move to the right of the "." --> <msline length='3'/> <mn> 0 </mn> </msgroup> </msgroup> </mlongdiv> </math>
                      elemmath-longdiv-fr.png <math xmlns="http://www.w3.org/1998/Math/MathML" decimalpoint=","> <mlongdiv longdivstyle='stackedrightright'> <mn> 12 </mn> <mn> 16,5 </mn> <mn> 198 </mn> <msgroup position='1' shift='-1'> <msgroup> <mn> 12 </mn> <msline length='2'/> </msgroup> <msgroup> <mn> 78 </mn> <mn> 72 </mn> <msline length='2'/> <mn> 6,0 </mn> <mn> 6,0 </mn> </msgroup> <msgroup position='-1'> <!-- extra shift to move to the right of the "," --> <msline length='3'/> <mn> 0 </mn> </msgroup> </msgroup> </mlongdiv> </math>

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Elementary math elements
                      • Addition, subtraction, and multiplication problems
                      • Repeating decimal
                      • MathML makes elementary math accessible

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Nubric

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand