Factorial in Scientific notation
<p>I want to show factorial of a number in scientific notation. </p>

<p>For example - <code>100! = "9.332621544e+157"</code> </p>

<p>Is there any other way to do this besides <code>NumberFormat</code>? This is my code so far -</p>

<pre><code>BigDecimal res=new BigDecimal("1");
for(int i=2;i&lt;=x;i++){
   res=res.multiply(BigDecimal.valueOf(i));
}
str=String.valueOf(res+"");
display.setText(str);
</code></pre>

<p>I'm really sorry if this question is vague to understand. Any help would be appreciated. Thanks in advance.</p>