- MathML Tutorial
- MathML - Home
- MathML - Overview
- MathML - All Elements
- MathML - Basic Elements
- MathML - Carries
- MathML - Enclosing
- MathML - Fencing
- MathML - Fractions
- MathML - Long Division
- MathML - Matrices
- MathML - Multiplication
- MathML - Overscript
- MathML - Padding
- MathML - Phantom
- MathML - Radicals
- MathML - Repeating Decimals
- MathML - Style
- MathML - Subscripts
- MathML - Subscript-Superscript
- MathML - Superscripts
- MathML - Underscript
- MathML - Underscript-Overscript
- MathML Symbols
- MathML - Algebra Symbols
- MathML - Calculus Symbols
- MathML - Ellipses Symbols
- MathML - Function Symbols
- MathML - Geometry Symbols
- MathML - Greek Letters
- MathML - Invisible Operators
- MathML - Logic Symbols
- MathML - Set Symbols
- MathML Useful Resources
- MathML - Quick Guide
- MathML - Useful Resources
- MathML - Discussion
MathML - Repeating Decimals
Decimal numbers having digit(s) that repeat(s) infinitely such as 1/3 (.3333...) are represented by putting a horizontal line over or below the digits that repeat. <mstack> , <msrow>, and <msline> elements can be used to create decimal numbers with repeated digits as shown below.
Example
Example 1
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mstack stackalign = "right"> <msline length = "1"/> <mn> 0.3333 </mn> </mstack> </math>
Output
Example 2
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mstack stackalign="right"> <msline length="6"/> <mn> 0.142857 </mn> </mstack> </math>
Output
Example 3
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mstack stackalign="right"> <mn> 0.142857 </mn> <msline length="6"/> </mstack> </math>
Output
Advertisements