目录

MathML - 重复小数( Repeating Decimals)

具有无限重复的数字的十进制数字,例如1/3(.3333 ...),通过在重复的数字上方或下方放置水平线来表示。 元素可用于创建重复数字的十进制数字,如下所示。

例子 (Example)

例子1 (Example 1)

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstack stackalign = "right">
      <msline length = "1"/>
      <mn> 0.3333 </mn>
   </mstack>
</math>

输出 (Output)

0.3333

例子2 (Example 2)

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstack stackalign="right">
      <msline length="6"/>
      <mn> 0.142857 </mn>
   </mstack>
</math> 

输出 (Output)

0.142857

例子3 (Example 3)

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstack stackalign="right">   
      <mn> 0.142857 </mn>
      <msline length="6"/>
   </mstack>
</math> 

输出 (Output)

0.142857
↑回到顶部↑
WIKI教程 @2018