java how to count the sum of all digits in double variable
<p>I've this code and I managed to count <code>77!</code> number. However I'm a bit confused how to count the sum of all digits in double variable ?</p>

<p>77!= 1.4518309202828584E113. And I can't use integer data types here. What should I do?</p>

<pre><code>package org.kodejava.example.io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Arrays;

public class Many {
    public static void main(String[] args) {
        System.out.println(factorial(77))
    }

    public static double factorial(double n) {
        if (n == 0) return 1;
        return n * factorial(n-1);
    }
}
</code></pre>
