ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 05 Nov 2018 03:28:20 +0100Controlling Digits output for same numbers used but different outputshttps://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/I am a teacher how is working with sagetex to automate some worksheets to save some time on creating different versions.
![Worksheet Example](https://www.dropbox.com/s/i7thccbcpcdizjq/Selection_424.png?dl=0)
In my worksheets students are given numbers to 2 or 3 digits of accuracy, but later there is a solution guide attached, and I would like to change the level of accuracy. An example: 2.5 times 350 equals 875, but rounded to 2 digits is 880. I would like to change the accuracy of the solutions produced.
I am still very new to all this, and would love any advice or help.
[CoCalc Kinetic Energy tex file](https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex)
[CoCalc Kinetic Energy Worksheet pdf](https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex)
Thanks,
VandiumRoadrunnerThu, 26 Jul 2018 18:17:53 +0200https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/Comment by slelievre for <p>I am a teacher how is working with sagetex to automate some worksheets to save some time on creating different versions. </p>
<p><img alt="Worksheet Example" src="https://www.dropbox.com/s/i7thccbcpcdizjq/Selection_424.png?dl=0"></p>
<p>In my worksheets students are given numbers to 2 or 3 digits of accuracy, but later there is a solution guide attached, and I would like to change the level of accuracy. An example: 2.5 times 350 equals 875, but rounded to 2 digits is 880. I would like to change the accuracy of the solutions produced. </p>
<p>I am still very new to all this, and would love any advice or help.</p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy tex file</a></p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy Worksheet pdf</a></p>
<p>Thanks,</p>
<p>VandiumRoadrunner</p>
https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=44188#post-id-44188To share documents from CoCalc, in the "Files" view of your CoCalc project,
select a file and click "Share"; this will give you a url on the CoCalc share server;
use that url to let others see the file you made public.Mon, 05 Nov 2018 00:33:59 +0100https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=44188#post-id-44188Comment by slelievre for <p>I am a teacher how is working with sagetex to automate some worksheets to save some time on creating different versions. </p>
<p><img alt="Worksheet Example" src="https://www.dropbox.com/s/i7thccbcpcdizjq/Selection_424.png?dl=0"></p>
<p>In my worksheets students are given numbers to 2 or 3 digits of accuracy, but later there is a solution guide attached, and I would like to change the level of accuracy. An example: 2.5 times 350 equals 875, but rounded to 2 digits is 880. I would like to change the accuracy of the solutions produced. </p>
<p>I am still very new to all this, and would love any advice or help.</p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy tex file</a></p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy Worksheet pdf</a></p>
<p>Thanks,</p>
<p>VandiumRoadrunner</p>
https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=44189#post-id-44189Or you could ask help from the CoCalc team -- in that case
use the help button at CoCalc; if you do that from the document
you are having trouble with, or if you provide the url to it, they'll
be able to access it and hopefully they can help.Mon, 05 Nov 2018 03:28:20 +0100https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=44189#post-id-44189Comment by rburing for <p>I am a teacher how is working with sagetex to automate some worksheets to save some time on creating different versions. </p>
<p><img alt="Worksheet Example" src="https://www.dropbox.com/s/i7thccbcpcdizjq/Selection_424.png?dl=0"></p>
<p>In my worksheets students are given numbers to 2 or 3 digits of accuracy, but later there is a solution guide attached, and I would like to change the level of accuracy. An example: 2.5 times 350 equals 875, but rounded to 2 digits is 880. I would like to change the accuracy of the solutions produced. </p>
<p>I am still very new to all this, and would love any advice or help.</p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy tex file</a></p>
<p><a href="https://cocalc.com/56b3cad9-8e21-4170-861f-0a498655bdfe/raw/7%20-%20Work,%20Power,%20Energy/KE%20Worksheet%20-%20Introduction/KE%20Worksheet%20-%20Introduction.tex">CoCalc Kinetic Energy Worksheet pdf</a></p>
<p>Thanks,</p>
<p>VandiumRoadrunner</p>
https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=43163#post-id-43163Your links don't work. You should write any relevant code here instead. Do I understand correctly that for `x = 875` and `digits_accuracy = 2` you want to obtain `round(x/10^(len(str(x))-digits_accuracy))*10^(len(str(x))-digits_accuracy)`?Thu, 26 Jul 2018 19:21:23 +0200https://ask.sagemath.org/question/43162/controlling-digits-output-for-same-numbers-used-but-different-outputs/?comment=43163#post-id-43163