Números Decimales
Fracción a número decimal puro y características
Escribe la fracción #p en forma decimal. Indica qué tipo es cada una y, en su caso, la parte entera, el anteperiodo y el periodo:
Forma decimal: {#1}
Parte entera: {#2}
Anteperiodo: {#3}
Periodo: {#4}
]]>
4.0000000
0.3333333
0
<question><wirisCasSession><session lang="es" version="2.0"><library closed="false"><mtext style="color:#ffc800" xml:lang="es">variables</mtext><group><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>repetir</mi><mo>&nbsp;</mo><mi>p</mi><mo>=</mo><mfrac><mrow><mi>aleatorio</mi><mo>(</mo><mn>1</mn><mo>,</mo><mn>98</mn><mo>)</mo></mrow><mn>9</mn></mfrac><mo>&nbsp;</mo><mi>hasta</mi><mo>&nbsp;</mo><mi>p</mi><mo>∉</mo><integers/></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>p1</mi><mo>=</mo><mi>p</mi><mo>*</mo><mn>1</mn><mo>.</mo></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>parte_entera</mi><mo>=</mo><mi>suelo</mi><mo>(</mo><mi>p1</mi><mo>)</mo></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>periodo</mi><mo>=</mo><mi>resto</mi><mo>(</mo><mi>suelo</mi><mo>(</mo><mi>p1</mi><mo>*</mo><mn>10</mn><mo>)</mo><mo>,</mo><mn>10</mn><mo>)</mo></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>np1</mi><mo>=</mo><mi>p1</mi><mo>/</mo><mn>2</mn></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>np2</mi><mo>=</mo><mn>3</mn><mo>*</mo><mi>p1</mi></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>np3</mi><mo>=</mo><mn>1</mn><mo>/</mo><mi>p1</mi></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>nq2</mi><mo>=</mo><mi>parte_entera</mi><mo>+</mo><mn>2</mn></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>nq3</mi><mo>=</mo><mi>parte_entera</mi><mo>+</mo><mn>1</mn></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>nq4</mi><mo>=</mo><mi>periodo</mi><mo>-</mo><mn>1</mn></math></input></command><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>nq5</mi><mo>=</mo><mi>periodo</mi><mo>+</mo><mn>2</mn></math></input></command></group></library><group><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"/></input></command></group><group><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"/></input></command></group><group><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"/></input></command></group><group><command><input><math xmlns="http://www.w3.org/1998/Math/MathML"/></input></command></group></session></wirisCasSession><correctAnswers><correctAnswer></correctAnswer></correctAnswers><options><option name="precision">6</option><option name="implicit_times_operator">false</option><option name="times_operator">·</option><option name="imaginary_unit">i</option></options><localData><data name="casSession"></data></localData></question>