error CS0030: Cannot convert type 'void' to 'double' : The compiler gives an error CS0030: Cannot convert type 'void' to 'double'. Help me please.
The code here:

    static public double Decode(string a)
    {
    	double c=double.Parse(a);
    	return (double)Console.WriteLine(c%3);
    }