I made a function, and I want to retrieve two returns, not a single return such as this example:
long Conv(double num){
long a,b;
a = floor(num);
b = num * pow(10,6) - a * pow(10,6);
return a;
return b;
}
When I call the function
long a = Conv(30.233456);
the question is: how do I retrieve b?
structwith both values in it, or have your function take pointers toaandband write the values there.floor(num)to geta(if you need it outside the function), and returnbfrom your function. If you only want to calculateaonce, pass it into the function as a parameter.Flooris already a different function.