weird behavior in equations

In solidworks equations:

Why the result is in deg unit in the first row and unitless in the second?
both figure are unit less.