Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Home
                      • MathPlayer
                      • MathML 3 elementary math examples
                      • 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.

                      <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>
                      <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?

                      Yes
                      No
                      Give feedback about this article

                      Related Articles

                      • Arithmetic
                      • The four basic operations
                      • Divisibility
                      • Elementary math elements

                      Making people’s STEM work more meaningful

                      MathType

                      • MathType for Office Tools
                      • MathType for Mac
                      • MathType for Microsoft 365
                      • MathType for Google Workspace
                      • MathType for LMS
                      • MathType for XML Editors
                      • Arabic notation
                      • Our products accessibility
                      • MathType is online

                      WirisQuizzes

                      Learning Lemur

                      Solutions for Education

                      • Blackboard Learn
                      • Brightspace by D2L
                      • Canvas
                      • Google Classroom
                      • Moodle
                      • Schoology

                      Solutions for Publishing Houses

                      Solutions for Technical Writers

                      Solutions for Chemistry

                      Integrations

                      • HTML Editors
                      • MathType in WordPress

                      Pricing

                      Company

                      Careers

                      Blog

                      Contact Us

                      Buy Now

                      Plugin Downloads

                      © Wiris 2025

                      • Cookie Settings
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Powered by Helpjuice
                      Expand