When I want to copy a scientific notated number from a TraditionalForm output to an input it formats it in a weird way:

enter image description here

Another thing I want to do is only copy a few number of decimals, and remove the accent (`), at the end:

enter image description here

  • $\begingroup$ Out of curiosity, how did you get Mathematica to use a decimal comma and a center dot for multiplication? Here it always uses a decimal point and a cross regardless of locale settings. $\endgroup$ – Szabolcs Mar 11 '12 at 11:16
  • $\begingroup$ In the preferences here: i.imgur.com/AbdFR.png and here: i.imgur.com/WMbMk.png $\endgroup$ – Tyilo Mar 11 '12 at 11:19
  • $\begingroup$ Ah, I see. Could you explain why you want it copied as-is? I find that Mathematica only does this when pasting the expression to be used as input (therefore ensuring it will get correctly interpreted), but it doesn't do it when pasting it to be used as typeset expression (e.g. text cells). $\endgroup$ – Szabolcs Mar 11 '12 at 11:21
  • $\begingroup$ Because I want to make multiple calculations, continuing from the last result, which would be in a TradionalForm input and it would save me some time, as I currently have to fromat it myself. $\endgroup$ – Tyilo Mar 11 '12 at 11:46
  • 1
    $\begingroup$ A practical workaround is to copy as MathML. But be aware that then you will be copying what you see, and it might get misinterpreted by Mathematica on the next input (in more special cases). Also, precision will be lost (but you are explicitly asking for this). Do this only if the formatting is really essential for some reason. (It might be possible to come up with a cleaner solution, but if this works for you, it probably isn't worth investing time into coding up a custom solution.) $\endgroup$ – Szabolcs Mar 11 '12 at 12:14

I'm not understanding, or I can't reproduce the behaviour of the pasting of the first part, please post a more concrete example. As to the 0.3333 issue, you could set the NumberMarks option of the input cells to False. Also, if you really meant that you wanted it copied as 0.3333 when your output had been 0.333333 you should also change PrintPrecision to 4

To change the options, a way would be to go to Format-Edit stylesheet, write Input in the box and press enter. Then, select the cell, go to Format->Options inspector. Check that "Selection" is set, search for the mentioned options and edit them

After these changes, any machine precision number you type in an Input cell, once you append a "`" mark, will be displayed as a rounded number, without the "`", and with PrintPrecision digits. However, you won't be losing precision in your calculations

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.