There's no way to return more than one value.
The solution is to pass a pointer to a variable into your function, and set the value at that address in the function.
For example:
Code:
void main()
{
double firstDouble, secondDouble;
firstDouble = function(&secondDouble);
// etc.
}
double function(double *doubleRef)
{
*doubleRef = 2.0;
return 1.0;
}