I would like the output of ToString to keep the zeros as in the input, how can I do that?
In[145]:= ToString[2.00, InputForm] Out[145]= "2." update
problem solved as follows
In[249]:= ToString[NumberForm[2., {1, 2}]] Out[249]= "2.00" Or, as suggested by @Shin Kim
In[257]:= ToString[-2`3] Out[257]= "-2.00" Now, I would like also to keep the sign - or + if possible, it works with - but with + not
In[250]:= ToString[NumberForm[+2., {1, 2}]] Out[250]= "2.00"
2.00to2.before even the kernel gets hold of it. If you write2.00it becomes2.EvenHoldForm[2.00]does not prevent this. $\endgroup$ToString[NumberForm[2.00, {1, 2}]]$\endgroup$ToString[NumberForm[2.,{1,2}]]as2.00are the same as2.0which is the same as2.saves you typing all those extra zeros. $\endgroup$