- - 3.6.2 MathML - Long Division mlongdiv

Mlongdiv is similar to mstack and used to layout long division. The first two children of mlongdiv are the divisor and the result of the division, in that order. The remaining children are treated as if they were children of mstack. The placement of these and the lines and separators used to display long division are controlled by the longdivstyle attribute.

### $\phantom{\rule{0ex}{0ex}}\text{MathML Fundamentals - mlongdiv}\phantom{\rule{0ex}{0ex}}3435.313061210916151.0913435.313061210916151.0913435.313061210916151.0913435.313061210916151.091\phantom{\rule{0ex}{0ex}}3435.313061210916151.0913435.313061210916151.0913435.313061210916151.0913435.313061210916151.091\phantom{\rule{0ex}{0ex}}3435.313061210916151.091٣٤٣٥٫٣١٣٠٦١٢١٠٩١٦١٥١٫٠٩١$

#### MathML

<math >

<mspace linebreak="newline" indentalign="center"></mspace>
<mtext style="border:1px;" mathsize="50">MathML Fundamentals - mlongdiv</mtext>

<mspace linebreak="newline" indentalign="center"></mspace>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="lefttop" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="righttop" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="stackedrightright" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="mediumstackedrightright" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>
<mspace linebreak="newline" indentalign="center"></mspace>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="shortstackedrightright" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>

<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="left/right" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>

<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="left)(right" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>

<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle=":right=right" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>

<mspace linebreak="newline" indentalign="center"></mspace>
<mrow style="border:1px;margin:5px"  axis="true" >
<mlongdiv longdivstyle="stackedleftleft" style="border:1px;margin:3px">
<mn> 3 </mn>
<mn> 435.3</mn>

<mn> 1306</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> 12</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> 10</mn>
<mn> 9</mn>
<msline length="2"/>
</msgroup>
<msgroup >
<mn> 16</mn>
<mn> 15</mn>
<msline length="2"/>
<mn> 1.0</mn>
</msgroup>
<msgroup position='-1'>
<mn> 9</mn>
<msline length="3"/>
<mn> 1</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mrow>

<mrow style="border:1px;margin:5px"  axis="true" >
<mstyle decimalpoint="٫">
<mlongdiv longdivstyle="stackedleftlinetop" style="border:1px;margin:3px">
<mn> ٣ </mn>
<mn> ٤٣٥٫٣</mn>

<mn> ١٣٠٦</mn>
<msgroup position="2" shift="-1">
<msgroup>
<mn> ١٢</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> ١٠</mn>
<mn> ٩</mn>
<msline length="2"/>
</msgroup>
<msgroup>
<mn> ١٦</mn>
<mn> ١٥</mn>
<msline length="2"/>
<mn> ١٫٠</mn>
</msgroup>
<msgroup position='-1'>
<mn> ٩</mn>
<msline length="3"/>
<mn> ١</mn>
</msgroup>
</msgroup>
</mlongdiv>
</mstyle>
</mrow>

[/itex]