<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Thanks a lot for your quick response. The problem is solved.  I am able to align the entries.
<br>
Peeyush<br>
<br>
<div><br>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<div style="direction: ltr;" id="divRpF921055"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Uwe Ziegenhagen [ziegenhagen@gmail.com]<br>
<b>Sent:</b> Sunday, August 07, 2011 10:30 AM<br>
<b>To:</b> Peeyush Mehta; texhax@tug.org<br>
<b>Subject:</b> Re: [texhax] Decimal alignment along with superscript<br>
</font><br>
</div>
<div></div>
<div><br>
<br>
<div class="gmail_quote">2011/8/7 Peeyush Mehta <span dir="ltr"><<a href="mailto:pmehta@iitk.ac.in" target="_blank">pmehta@iitk.ac.in</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
I have a table column that has numbers with decimals and some numbers end with an asterisk as the superscript. I am not able to align the column entries. If the superscript is not there, I am able to solve the problem using "dcolumn" package. But to have a
 superscript, I have to use $ command in the maths mode. Then "dcolumn" is not working. Any suggestions would be of great help as I have spent lot of effort on it.<br>
For instance, my column entries are<br>
-.28***<br>
1.40<br>
-2.08*<br>
and so on.<br>
<br>
Thanks a lot, <br>
<font color="#888888"><br>
Peeyush <br>
<br>
<div><br>
<div><font size="2">
<div><br>
</div>
</font></div>
</div>
</font></div>
</div>
</blockquote>
<div><br>
You can avoid the mathmode by using \textsuperscript{}:<br>
<br>
<br>
\documentclass{article}<br>
\usepackage[]{dcolumn}<br>
\newcolumntype{d}[1]{D{.}{,}{#1}}<br>
<br>
\begin{document}<br>
\begin{tabular}{|c|d{4}|c|} \hline<br>
da & 1.4242\textsuperscript{*} & sdfs \\ \hline<br>
da & 1.33& sdfs \\ \hline<br>
\end{tabular}<br>
<br>
\end{document}<br>
<br>
Best,<br>
<br>
Uwe<br>
 </div>
</div>
-- <br>
Uwe Ziegenhagen<br>
<<a href="http://www.uweziegenhagen.de" target="_blank">http://www.uweziegenhagen.de</a>><br>
</div>
</div>
</div>
</body>
</html>