MATLAB: Simultaneous equation using sym x y

simultaneous equationtrigonometry

I have a simultaneous equation involving angles, I searched the example code given in the Matlab website and got to know this function,
syms x y
eqn1 = (x*cosd(90-declin(star_1))) + (y*sind(90-declin(star_1))*cosd(180-hour_angle1)) == sind(altitude1);
eqn2 = (x*cosd(90-declin(star_2))) + (y*sind(90-declin(star_2))*cosd(180-hour_angle2)) == sind(altitude2);
sol = solve([eqn1, eqn2], [x, y]);
xSol = sol.x;
ySol = sol.y;
however the result of xSol and ySol returns me are in the equation as follow:
xSol =8574394107518575345582913247962335860353333952/363377113639125604827290236669541719008437000669
and whatever mathematical operation I use on xSol or ySol gives me similar answers, are there any way for me to obtain the numerical value of the equation? I have tried using abs(xSol) to obtain the magnitude, but the result is still the same. Any help would be appreciated =)
I am running on MatlabR2017b.

Best Answer

double(xSol)
or in the case of expressions that still have a symbolic variable in them,
vpa(xSol)